X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c6a3e8a23c19b03e201800b661dd3887d1e1db0..b45ab2904c3af8c8e96943bbd1b7643f9d5fbde1:/src/gtk/control.cpp diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index 22f7bfcd03..f940e07bdb 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -82,7 +82,7 @@ void wxControl::PostCreation(const wxSize& size) gtk_widget_ensure_style(m_widget); ApplyWidgetStyle(); - SetInitialBestSize(size); + SetInitialSize(size); } // ---------------------------------------------------------------------------- @@ -375,7 +375,7 @@ void wxControl::OnInternalIdle() if ( GtkShowFromOnIdle() ) return; - if ( IsShown() ) + if ( GTK_WIDGET_REALIZED(m_widget) ) { GTKUpdateCursor();