+ // 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();