Take into account the initial buttons state when creating wxGTK toolbar.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Dec 2009 16:36:39 +0000 (16:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Dec 2009 16:36:39 +0000 (16:36 +0000)
commit9067c6c5377cd6248d34352a2c8a0e1a2485e5c9
tree30bb0540d8503cb70d071564c710ef155d98f416
parentcf7715db56ae72ef9ce37329c33b95452088036e
Take into account the initial buttons state when creating wxGTK toolbar.

With wxMSW it is possible to call e.g. wxToolBarTool::Enable(false) on a tool
before calling wxToolBar::Realize() to create the tool in an initially
disabled state but this wasn't done in wxGTK version.

Override Realize() now under wxGTK to bring the native toolbar buttons state
in sync with the internal state of the corresponding wxToolBarTools.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/gtk/toolbar.h
src/gtk/toolbar.cpp