[wxGTK2.4] Make affirmative button the default in wxFileDialog GtkFileChooser impl. Alex Bligh, patch #1484088.

Closes bugs #1484037 and #1347052.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp
2006-05-11 17:05:12 +00:00
parent b44f1ca20b
commit c1dfe97c32

View File

@@ -177,6 +177,8 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
ok_btn_stock, GTK_RESPONSE_ACCEPT, ok_btn_stock, GTK_RESPONSE_ACCEPT,
NULL); NULL);
gtk_dialog_set_default_response(GTK_DIALOG(m_widget), GTK_RESPONSE_ACCEPT);
if ( style & wxMULTIPLE ) if ( style & wxMULTIPLE )
gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(m_widget), true); gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(m_widget), true);