]> git.saurik.com Git - wxWidgets.git/commitdiff
[wxGTK2] Make the affirmative button the default in native wxDirDialog implementation...
authorMart Raudsepp <leio@gentoo.org>
Thu, 11 May 2006 17:15:57 +0000 (17:15 +0000)
committerMart Raudsepp <leio@gentoo.org>
Thu, 11 May 2006 17:15:57 +0000 (17:15 +0000)
all).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dirdlg.cpp

index bfd86d0b3956ae3815e8ca0f32e42410d1ada2bc..5247f67f54d1f3cd9dce3e603b0a4ea37846cd23 100644 (file)
@@ -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,