]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/control.cpp
Version updates
[wxWidgets.git] / src / gtk / control.cpp
index 22f7bfcd038227326739e507163c6db9303a4347..f940e07bdb355389915ca4ca2f7f9650669c9e8f 100644 (file)
@@ -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();