[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:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user