X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/58772e4992e1a0601bddbf76fddbf4bb916cf85e..efe5e221b415a8ce6e0a36848e7c90e70c9384cb:/src/gtk/filepicker.cpp diff --git a/src/gtk/filepicker.cpp b/src/gtk/filepicker.cpp index f5f6a0a97b..6779e75111 100644 --- a/src/gtk/filepicker.cpp +++ b/src/gtk/filepicker.cpp @@ -45,10 +45,11 @@ bool wxFileButton::Create( wxWindow *parent, wxWindowID id, { if (!gtk_check_version(2,6,0)) { - // VERY IMPORTANT: this code is identic to relative code in wxFileButton; - // if you find a problem here, fix it also in wxFileButton ! + // VERY IMPORTANT: this code is identic to relative code in wxDirButton; + // if you find a problem here, fix it also in wxDirButton ! m_needParent = true; + m_acceptsFocus = true; if (!PreCreation( parent, pos, size ) || !wxControl::CreateBase(parent, id, pos, size, style & wxWINDOW_STYLE_MASK, @@ -127,7 +128,6 @@ void wxFileButton::OnDialogOK(wxCommandEvent& ev) } } - void wxFileButton::SetPath(const wxString &str) { m_path = str; @@ -200,6 +200,7 @@ bool wxDirButton::Create( wxWindow *parent, wxWindowID id, // if you find a problem here, fix it also in wxFileButton ! m_needParent = true; + m_acceptsFocus = true; if (!PreCreation( parent, pos, size ) || !wxControl::CreateBase(parent, id, pos, size, style & wxWINDOW_STYLE_MASK,