From ffa51479430732678887c0dfc19f5db590f52ce7 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 2 Apr 2008 10:04:05 +0000 Subject: [PATCH] Only update the toolbar buttons if the toolbar is visible git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/tbargtk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/tbargtk.cpp b/src/gtk/tbargtk.cpp index b08e0e641b..46cb5b8c97 100644 --- a/src/gtk/tbargtk.cpp +++ b/src/gtk/tbargtk.cpp @@ -848,7 +848,7 @@ void wxToolBar::OnInternalIdle() } } - if (wxUpdateUIEvent::CanUpdate(this)) + if (wxUpdateUIEvent::CanUpdate(this) && IsShownOnScreen()) UpdateWindowUI(wxUPDATE_UI_FROMIDLE); } -- 2.47.2