From b69bb1d0f8019ef0e11d9cf481111279625c4567 Mon Sep 17 00:00:00 2001 From: fluxgen <fluxgen> Date: Wed, 4 Dec 2002 22:36:47 +0000 Subject: saving toolbar resource --- src/Toolbar.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 9026852..9db04d1 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Toolbar.cc,v 1.48 2002/12/04 17:58:01 fluxgen Exp $ +// $Id: Toolbar.cc,v 1.49 2002/12/04 22:36:47 fluxgen Exp $ #include "Toolbar.hh" @@ -1349,7 +1349,7 @@ void Toolbarmenu::Placementmenu::itemSelected(int button, unsigned int index) { // toolbar m_toolbarmenu.m_toolbar.screen()->getSlit()->reposition(); #endif // SLIT - + Fluxbox::instance()->save_rc(); } } @@ -1383,17 +1383,19 @@ void Toolbarmenu::Headmenu::itemSelected(int button, unsigned int index) { if (! item) return; - m_toolbarmenu.m_toolbar.screen()->saveToolbarOnHead( + screen()->saveToolbarOnHead( static_cast<int>(item->function())); + hide(); m_toolbarmenu.m_toolbar.reconfigure(); + #ifdef SLIT // reposition the slit as well to make sure it doesn't intersect the // toolbar m_toolbarmenu.m_toolbar.screen()->getSlit()->reposition(); #endif // SLIT - + Fluxbox::instance()->save_rc(); } } -- cgit v0.11.2