remove unnecessary gtk_widget_show() calls, PostCreation() takes care of that
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -80,9 +80,7 @@ bool wxFileButton::Create( wxWindow *parent, wxWindowID id,
|
|||||||
|
|
||||||
// use as label the currently selected file
|
// use as label the currently selected file
|
||||||
m_widget = gtk_file_chooser_button_new_with_dialog( m_dialog->m_widget );
|
m_widget = gtk_file_chooser_button_new_with_dialog( m_dialog->m_widget );
|
||||||
|
|
||||||
g_object_ref(m_widget);
|
g_object_ref(m_widget);
|
||||||
gtk_widget_show(m_widget);
|
|
||||||
|
|
||||||
// we need to know when the dialog has been dismissed clicking OK...
|
// we need to know when the dialog has been dismissed clicking OK...
|
||||||
// NOTE: the "clicked" signal is not available for a GtkFileChooserButton
|
// NOTE: the "clicked" signal is not available for a GtkFileChooserButton
|
||||||
@@ -237,9 +235,6 @@ bool wxDirButton::Create( wxWindow *parent, wxWindowID id,
|
|||||||
m_widget = gtk_file_chooser_button_new_with_dialog( m_dialog->m_widget );
|
m_widget = gtk_file_chooser_button_new_with_dialog( m_dialog->m_widget );
|
||||||
g_object_ref(m_widget);
|
g_object_ref(m_widget);
|
||||||
|
|
||||||
|
|
||||||
gtk_widget_show(m_widget);
|
|
||||||
|
|
||||||
// GtkFileChooserButton signals
|
// GtkFileChooserButton signals
|
||||||
g_signal_connect(m_widget, "current-folder-changed",
|
g_signal_connect(m_widget, "current-folder-changed",
|
||||||
G_CALLBACK(gtk_dirbutton_currentfolderchanged_callback), this);
|
G_CALLBACK(gtk_dirbutton_currentfolderchanged_callback), this);
|
||||||
|
Reference in New Issue
Block a user