]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/window.cpp
added support for gcc precompiled headers
[wxWidgets.git] / src / x11 / window.cpp
index 5901a58e809e45f1dd8547ceb8ba89e72c3dbcbf..fe52bbff49c248b6ad17b2330ab01b99ff109574 100644 (file)
@@ -1261,7 +1261,7 @@ void wxWindowX11::SendNcPaintEvents()
 // Responds to colour changes: passes event on to children.
 void wxWindowX11::OnSysColourChanged(wxSysColourChangedEvent& event)
 {
-    wxWindowList::Node *node = GetChildren().GetFirst();
+    wxWindowList::compatibility_iterator node = GetChildren().GetFirst();
     while ( node )
     {
         // Only propagate to non-top-level windows
@@ -1287,7 +1287,8 @@ void wxWindowX11::OnInternalIdle()
 
     // This calls the UI-update mechanism (querying windows for
     // menu/toolbar/control state information)
-    UpdateWindowUI();
+    if (wxUpdateUIEvent::CanUpdate((wxWindow*) this))
+        UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 
     // Set the input focus if couldn't do it before
     if (m_needsInputFocus)