]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/tbargtk.cpp
use IMPLEMENT_APP_CONSOLE and not IMPLEMENT_APP for console apps
[wxWidgets.git] / src / gtk / tbargtk.cpp
index b08e0e641bfd326c766bce0064a1bc2ed6aaf6ff..46cb5b8c977146ce9696b05c3b3e9b443c06f591 100644 (file)
@@ -848,7 +848,7 @@ void wxToolBar::OnInternalIdle()
         }
     }
 
-    if (wxUpdateUIEvent::CanUpdate(this))
+    if (wxUpdateUIEvent::CanUpdate(this) && IsShownOnScreen())
         UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 }