diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-18 13:46:10 (GMT) |
---|---|---|
committer | Paul Tagliamonte <paultag@fluxbox.org> | 2012-04-07 02:11:32 (GMT) |
commit | 50c5ccc03b932444fdc5056998dafa71bbb6da70 (patch) | |
tree | c27878fc15035f479a5392397682d58991da9065 /src | |
parent | e1c1e1d11dc6bbf096586a7605869a11d0229729 (diff) | |
download | fluxbox_paul-50c5ccc03b932444fdc5056998dafa71bbb6da70.zip fluxbox_paul-50c5ccc03b932444fdc5056998dafa71bbb6da70.tar.bz2 |
Attach modifiedSig handlers to session.screenX.(un)focusedAlpha resources
Diffstat (limited to 'src')
-rw-r--r-- | src/Screen.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index d898e69..8615942 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -398,8 +398,14 @@ BScreen::BScreen(FbTk::ResourceManager_base &rm, | |||
398 | m_root_theme.reset(new RootTheme(imageControl())); | 398 | m_root_theme.reset(new RootTheme(imageControl())); |
399 | m_root_theme->reconfigTheme(); | 399 | m_root_theme->reconfigTheme(); |
400 | 400 | ||
401 | m_tracker.join(resource.focused_alpha.modifiedSig(), | ||
402 | MemFun(*focusedWinFrameTheme(), &FbWinFrameTheme::setAlpha)); | ||
401 | focusedWinFrameTheme()->setAlpha(*resource.focused_alpha); | 403 | focusedWinFrameTheme()->setAlpha(*resource.focused_alpha); |
404 | |||
405 | m_tracker.join(resource.unfocused_alpha.modifiedSig(), | ||
406 | MemFun(*unfocusedWinFrameTheme(), &FbWinFrameTheme::setAlpha)); | ||
402 | unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); | 407 | unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); |
408 | |||
403 | m_menutheme->setAlpha(*resource.menu_alpha); | 409 | m_menutheme->setAlpha(*resource.menu_alpha); |
404 | 410 | ||
405 | m_menutheme->setDelay(*resource.menu_delay); | 411 | m_menutheme->setDelay(*resource.menu_delay); |
@@ -809,8 +815,6 @@ BScreen::addExtraWindowMenu(const FbTk::FbString &label, const FbTk::RefCount<Fb | |||
809 | } | 815 | } |
810 | 816 | ||
811 | void BScreen::reconfigure() { | 817 | void BScreen::reconfigure() { |
812 | focusedWinFrameTheme()->setAlpha(*resource.focused_alpha); | ||
813 | unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); | ||
814 | m_menutheme->setAlpha(*resource.menu_alpha); | 818 | m_menutheme->setAlpha(*resource.menu_alpha); |
815 | 819 | ||
816 | m_menutheme->setDelay(*resource.menu_delay); | 820 | m_menutheme->setDelay(*resource.menu_delay); |