} // extern "C"
+static void wxInsertChildInFileDialog(wxWindow* WXUNUSED(parent),
+ wxWindow* WXUNUSED(child))
+{
+}
+
//-----------------------------------------------------------------------------
// wxFileDialog
const wxString& name)
: wxFileDialogBase()
{
+ m_insertCallback = wxInsertChildInFileDialog;
parent = GetParentForModalDialog(parent);
if (!wxFileDialogBase::Create(parent, message, defaultDir, defaultFileName,
}
}
+
void wxFileDialog::OnFakeOk(wxCommandEvent& WXUNUSED(event))
{
EndDialog(wxID_OK);
int wxFileDialog::ShowModal()
{
- return wxDialog::ShowModal();
-}
+ if (CreateExtraControl())
+ {
+ GtkWidget *control = m_extraControl->m_widget;
-bool wxFileDialog::Show( bool show )
-{
- return wxDialog::Show( show );
+ // see wxNotebook::InsertPage() for explaination
+ // why gtk_widget_unparent() is not used here
+ control->parent = NULL;
+
+ gtk_widget_show(control);
+ gtk_file_chooser_set_extra_widget(GTK_FILE_CHOOSER(m_widget), control);
+ }
+
+ return wxDialog::ShowModal();
}
void wxFileDialog::DoSetSize(int WXUNUSED(x), int WXUNUSED(y),