if ( style & wxSAVE )
{
- if ( !defaultDir.IsEmpty() )
+ if ( !defaultDir.empty() )
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(m_widget),
wxConvFileName->cWX2MB(defaultDir));
}
else
{
- if ( !defaultFileName.IsEmpty() )
+ if ( !defaultFileName.empty() )
{
wxString dir;
- if ( defaultDir.IsEmpty() )
+ if ( defaultDir.empty() )
dir = ::wxGetCwd();
else
dir = defaultDir;
GTK_FILE_CHOOSER(m_widget),
wxConvFileName->cWX2MB( wxFileName(dir, defaultFileName).GetFullPath() ) );
}
- else if ( !defaultDir.IsEmpty() )
+ else if ( !defaultDir.empty() )
gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER(m_widget),
wxConvFileName->cWX2MB(defaultDir) );
}
#ifdef __WXGTK24__
if (!gtk_check_version(2,4,0))
{
- if (wxPathExists(dir))
+ if (wxDirExists(dir))
{
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(m_widget), wxConvFileName->cWX2MB(dir));
}