- // VERY IMPORTANT: this code is identic to relative code in wxFileButton;
- // if you find a problem here, fix it also in wxFileButton !
+ // VERY IMPORTANT: this code is identic to relative code in wxDirButton;
+ // if you find a problem here, fix it also in wxDirButton !
}
else
return wxGenericFileButton::Create(parent, id, label, path, message, wildcard,
}
else
return wxGenericFileButton::Create(parent, id, label, path, message, wildcard,
// NB: it's important to use gtk_file_chooser_get_filename instead of
// gtk_file_chooser_get_current_folder (see GTK docs) !
// NB: it's important to use gtk_file_chooser_get_filename instead of
// gtk_file_chooser_get_current_folder (see GTK docs) !
// ...and fire an event
wxFileDirPickerEvent event(wxEVT_COMMAND_DIRPICKER_CHANGED, p, p->GetId(), p->GetPath());
// ...and fire an event
wxFileDirPickerEvent event(wxEVT_COMMAND_DIRPICKER_CHANGED, p, p->GetId(), p->GetPath());
}
else
return wxGenericDirButton::Create(parent, id, label, path, message, wildcard,
}
else
return wxGenericDirButton::Create(parent, id, label, path, message, wildcard,