From 30913f9d9b3ea6108c78f4d5c798330b76bf5e05 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 db16723..29545c2 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