From 2ec31c864682e10a433e2560118ecef80c4881bb 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 8f1fcef..6d5000b 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -424,8 +424,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); @@ -832,8 +838,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