From ccae5408e615fefbcd5d6caa5f17711aca4641db Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 2 Apr 2008 10:03:40 +0000 Subject: [PATCH] Only update the toolbar buttons if the toolbar is visible git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52974 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 9281814634..39e24837a3 100644 --- a/src/gtk/tbargtk.cpp +++ b/src/gtk/tbargtk.cpp @@ -686,7 +686,7 @@ void wxToolBar::OnInternalIdle() } } - if (wxUpdateUIEvent::CanUpdate(this)) + if (wxUpdateUIEvent::CanUpdate(this) && IsShownOnScreen()) UpdateWindowUI(wxUPDATE_UI_FROMIDLE); }