From 9cbd0dcd0ab6d209a73106eb12e7ca870e408cf8 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 6d5000b..4b62926 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -432,8 +432,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(), @@ -838,10 +842,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