diff --git a/include/nana/gui/widgets/toolbar.hpp b/include/nana/gui/widgets/toolbar.hpp index 3116042d..cc0f4e24 100644 --- a/include/nana/gui/widgets/toolbar.hpp +++ b/include/nana/gui/widgets/toolbar.hpp @@ -38,7 +38,7 @@ namespace nana nana::toolbar& widget; std::size_t button; - void enable(bool enable_state) const; + void enable(bool enable_state); }; struct toolbar_events diff --git a/source/gui/widgets/toolbar.cpp b/source/gui/widgets/toolbar.cpp index 1c36d355..d34fc524 100644 --- a/source/gui/widgets/toolbar.cpp +++ b/source/gui/widgets/toolbar.cpp @@ -421,7 +421,7 @@ namespace nana //class drawer // Item Proxy - void item_proxy::enable(bool enable_state) const + void item_proxy::enable(bool enable_state) { widget.enable(button, enable_state); }