X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f069ac4801c0110f98d5bcfebc7b0474eceb9c0e..bb996f289574defb0ae4339ae8e46ff3cf6fa54c:/src/gtk/filectrl.cpp diff --git a/src/gtk/filectrl.cpp b/src/gtk/filectrl.cpp index 4c0d97ba34..7eaf555117 100644 --- a/src/gtk/filectrl.cpp +++ b/src/gtk/filectrl.cpp @@ -88,7 +88,7 @@ bool wxGtkFileChooser::SetPath( const wxString& path ) if ( path.empty() ) return true; - return gtk_file_chooser_set_filename( m_widget, path.utf8_str() ); + return gtk_file_chooser_set_filename( m_widget, path.utf8_str() ) != 0; } bool wxGtkFileChooser::SetDirectory( const wxString& dir ) @@ -285,6 +285,12 @@ extern "C" IMPLEMENT_DYNAMIC_CLASS( wxGtkFileCtrl, wxControl ) +wxGtkFileCtrl::~wxGtkFileCtrl() +{ + if (m_fcWidget) + GTKDisconnect(m_fcWidget); +} + void wxGtkFileCtrl::Init() { m_checkNextSelEvent = false;