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 )
IMPLEMENT_DYNAMIC_CLASS( wxGtkFileCtrl, wxControl )
+wxGtkFileCtrl::~wxGtkFileCtrl()
+{
+ if (m_fcWidget)
+ GTKDisconnect(m_fcWidget);
+}
+
void wxGtkFileCtrl::Init()
{
m_checkNextSelEvent = false;