From c1dfe97c32618c22fe400321e4a8029ee910c412 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Thu, 11 May 2006 17:05:12 +0000 Subject: [PATCH] [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 --- src/gtk/filedlg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gtk/filedlg.cpp b/src/gtk/filedlg.cpp index 77f19242de..4488c5e837 100644 --- a/src/gtk/filedlg.cpp +++ b/src/gtk/filedlg.cpp @@ -177,6 +177,8 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message, ok_btn_stock, GTK_RESPONSE_ACCEPT, NULL); + gtk_dialog_set_default_response(GTK_DIALOG(m_widget), GTK_RESPONSE_ACCEPT); + if ( style & wxMULTIPLE ) gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(m_widget), true); -- 2.45.2