X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53a2db124c633f80bdb16336084262037d879a2c..56b18fda9452fc39ba91f4060a39721db7e2f437:/include/wx/gtk/filectrl.h?ds=sidebyside diff --git a/include/wx/gtk/filectrl.h b/include/wx/gtk/filectrl.h index d5a462ef81..e194bfc49f 100644 --- a/include/wx/gtk/filectrl.h +++ b/include/wx/gtk/filectrl.h @@ -48,8 +48,14 @@ public: void SetWildcard( const wxString& wildCard ); void SetFilterIndex( int filterIndex ); + wxString GetCurrentWildCard() const + { return m_wildcards[GetFilterIndex()]; } + private: GtkFileChooser *m_widget; + // First wildcard in filter, to be used when the user + // saves a file without giving an extension. + wxArrayString m_wildcards; }; #if wxUSE_FILECTRL