]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/control.cpp
DLL build fixes
[wxWidgets.git] / src / gtk / control.cpp
index 613ed139fa1c74732b1d4eac2d6cf122cf6dcc15..9641245f398431d6079e6773f10aad799b50936d 100644 (file)
@@ -366,4 +366,24 @@ wxControl::GetDefaultAttributesFromGTKWidget(wxGtkWidgetNewFromAdj_t widget_new,
     return attr;
 }
 
+// ----------------------------------------------------------------------------
+// idle handling
+// ----------------------------------------------------------------------------
+
+void wxControl::OnInternalIdle()
+{
+    if ( GtkShowFromOnIdle() )
+        return;
+
+    if ( GTK_WIDGET_REALIZED(m_widget) )
+    {
+        GTKUpdateCursor();
+
+        GTKSetDelayedFocusIfNeeded();
+    }
+
+    if ( wxUpdateUIEvent::CanUpdate(this) )
+        UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
+}
+
 #endif // wxUSE_CONTROLS