From bcaa58376bb688b2cabf9d44207b89d92c65c691 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 18 Jul 2011 15:46:10 +0200 Subject: Attach modifiedSig handlers to session.screenX.(un)focusedAlpha resources --- src/Screen.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index c883202..db16723 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -398,8 +398,14 @@ BScreen::BScreen(FbTk::ResourceManager_base &rm, m_root_theme.reset(new RootTheme(imageControl())); m_root_theme->reconfigTheme(); + m_tracker.join(resource.focused_alpha.modifiedSig(), + MemFun(*focusedWinFrameTheme(), &FbWinFrameTheme::setAlpha)); focusedWinFrameTheme()->setAlpha(*resource.focused_alpha); + + m_tracker.join(resource.unfocused_alpha.modifiedSig(), + MemFun(*unfocusedWinFrameTheme(), &FbWinFrameTheme::setAlpha)); unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); + m_menutheme->setAlpha(*resource.menu_alpha); m_menutheme->setDelay(*resource.menu_delay); @@ -809,8 +815,6 @@ BScreen::addExtraWindowMenu(const FbTk::FbString &label, const FbTk::RefCountsetAlpha(*resource.focused_alpha); - unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); m_menutheme->setAlpha(*resource.menu_alpha); m_menutheme->setDelay(*resource.menu_delay); -- cgit v0.11.2