aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-18 13:46:10 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-11-01 09:57:23 (GMT)
commitbcaa58376bb688b2cabf9d44207b89d92c65c691 (patch)
tree44174e49a0368ad7a6fb805349061c0af07bd2cd
parente869b52fe6963357f95e19c3e3fbd742ef8a48bd (diff)
downloadfluxbox_paul-bcaa58376bb688b2cabf9d44207b89d92c65c691.zip
fluxbox_paul-bcaa58376bb688b2cabf9d44207b89d92c65c691.tar.bz2
Attach modifiedSig handlers to session.screenX.(un)focusedAlpha resources
-rw-r--r--src/Screen.cc8
1 files 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,
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
811void BScreen::reconfigure() { 817void 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);