From 8c80c4d8b3d06d0cd4077a8ec8de5fc0b63b6c07 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 18 Jul 2011 15:53:42 +0200 Subject: Attach modifiedSig handlers to session.screenX.menu{Delay,Alpha} resources --- src/Screen.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index 8615942..f848497 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -406,8 +406,12 @@ BScreen::BScreen(FbTk::ResourceManager_base &rm, MemFun(*unfocusedWinFrameTheme(), &FbWinFrameTheme::setAlpha)); unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); + m_tracker.join(resource.menu_alpha.modifiedSig(), + MemFun(*m_menutheme, &FbTk::MenuTheme::setAlpha)); m_menutheme->setAlpha(*resource.menu_alpha); + m_tracker.join(resource.menu_delay.modifiedSig(), + MemFun(*m_menutheme, &FbTk::MenuTheme::setDelay)); m_menutheme->setDelay(*resource.menu_delay); m_tracker.join(focusedWinFrameTheme()->reconfigSig(), @@ -815,10 +819,6 @@ BScreen::addExtraWindowMenu(const FbTk::FbString &label, const FbTk::RefCountsetAlpha(*resource.menu_alpha); - - m_menutheme->setDelay(*resource.menu_delay); - // realize the number of workspaces from the init-file const unsigned int nr_ws = *resource.workspaces; while(nr_ws > m_workspaces_list.size()) -- cgit v0.11.2