]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/control.cpp
new graphics context implementation
[wxWidgets.git] / src / gtk / control.cpp
index 0fe56326eeed3051fbeae6d8f0589b228e13441b..9641245f398431d6079e6773f10aad799b50936d 100644 (file)
@@ -374,10 +374,13 @@ void wxControl::OnInternalIdle()
 {
     if ( GtkShowFromOnIdle() )
         return;
-    
-    GTKUpdateCursor();
 
-    GTKSetDelayedFocusIfNeeded();
+    if ( GTK_WIDGET_REALIZED(m_widget) )
+    {
+        GTKUpdateCursor();
+
+        GTKSetDelayedFocusIfNeeded();
+    }
 
     if ( wxUpdateUIEvent::CanUpdate(this) )
         UpdateWindowUI(wxUPDATE_UI_FROMIDLE);