show window from PostCreation() (which is called for the derived classes as well) instead of Create() (which is not)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2732,9 +2732,6 @@ bool wxWindowGTK::Create( wxWindow *parent,
|
|||||||
|
|
||||||
PostCreation();
|
PostCreation();
|
||||||
|
|
||||||
if ( IsShown() )
|
|
||||||
gtk_widget_show( m_widget );
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2919,6 +2916,11 @@ void wxWindowGTK::PostCreation()
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_hasVMT = TRUE;
|
m_hasVMT = TRUE;
|
||||||
|
|
||||||
|
// unless the window was created initially hidden (i.e. Hide() had been
|
||||||
|
// called before Create()), we should show it at GTK+ level as well
|
||||||
|
if ( IsShown() )
|
||||||
|
gtk_widget_show( m_widget );
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindowGTK::ConnectWidget( GtkWidget *widget )
|
void wxWindowGTK::ConnectWidget( GtkWidget *widget )
|
||||||
|
@@ -2732,9 +2732,6 @@ bool wxWindowGTK::Create( wxWindow *parent,
|
|||||||
|
|
||||||
PostCreation();
|
PostCreation();
|
||||||
|
|
||||||
if ( IsShown() )
|
|
||||||
gtk_widget_show( m_widget );
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2919,6 +2916,11 @@ void wxWindowGTK::PostCreation()
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_hasVMT = TRUE;
|
m_hasVMT = TRUE;
|
||||||
|
|
||||||
|
// unless the window was created initially hidden (i.e. Hide() had been
|
||||||
|
// called before Create()), we should show it at GTK+ level as well
|
||||||
|
if ( IsShown() )
|
||||||
|
gtk_widget_show( m_widget );
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindowGTK::ConnectWidget( GtkWidget *widget )
|
void wxWindowGTK::ConnectWidget( GtkWidget *widget )
|
||||||
|
Reference in New Issue
Block a user