Store the selected directory in wxGTK wxDirDialog.

This should help with the selected directory not being remembered since
GTK+ 2.24.11 as apparently gtk_file_chooser_get_filename() doesn't work any
more now after hiding the dialog -- so call it before doing this and save the
result.

Also get rid of the ugly and apparently completely unnecessary OnFakeOk().

Closes #14525.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-10-25 23:26:36 +00:00
parent 656b9f4467
commit 5a7c1881a1
2 changed files with 26 additions and 48 deletions

View File

@@ -42,6 +42,11 @@ public: // overrides from wxGenericDirDialog
void SetPath(const wxString& path);
// Implementation only.
void GTKOnAccept();
void GTKOnCancel();
protected:
// override this from wxTLW since the native
// form doesn't have any m_wxwindow
@@ -51,10 +56,9 @@ protected:
private:
void OnFakeOk( wxCommandEvent &event );
wxString m_selectedDirectory;
DECLARE_DYNAMIC_CLASS(wxDirDialog)
DECLARE_EVENT_TABLE()
};
#endif // __GTKDIRDLGH__