]> git.saurik.com Git - wxWidgets.git/commitdiff
Only update the toolbar buttons if the toolbar is visible
authorJulian Smart <julian@anthemion.co.uk>
Wed, 2 Apr 2008 10:04:05 +0000 (10:04 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 2 Apr 2008 10:04:05 +0000 (10:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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);
 }