From 6905dfe91d687184e95fda43dbdd5ac3b2bc7b48 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Thu, 11 May 2006 17:15:57 +0000 Subject: [PATCH] [wxGTK2] Make the affirmative button the default in native wxDirDialog implementation (instead of no default at all). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/dirdlg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gtk/dirdlg.cpp b/src/gtk/dirdlg.cpp index bfd86d0b39..5247f67f54 100644 --- a/src/gtk/dirdlg.cpp +++ b/src/gtk/dirdlg.cpp @@ -146,6 +146,8 @@ wxDirDialogGTK::wxDirDialogGTK(wxWindow* parent, const wxString& title, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); + gtk_dialog_set_default_response(GTK_DIALOG(m_widget), GTK_RESPONSE_ACCEPT); + // local-only property could be set to false to allow non-local files to be loaded. // In that case get/set_uri(s) should be used instead of get/set_filename(s) everywhere // and the GtkFileChooserDialog should probably also be created with a backend, -- 2.45.2