diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-18 13:46:10 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2013-02-18 21:04:23 (GMT) |
commit | 2ec31c864682e10a433e2560118ecef80c4881bb (patch) | |
tree | 820761cbd5e884ad886469580b1f3a81b602b7b4 /src | |
parent | d62a0183c99f829620997545e5fc31f8d1714b59 (diff) | |
download | fluxbox_pavel-2ec31c864682e10a433e2560118ecef80c4881bb.zip fluxbox_pavel-2ec31c864682e10a433e2560118ecef80c4881bb.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 8f1fcef..6d5000b 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -424,8 +424,14 @@ BScreen::BScreen(FbTk::ResourceManager_base &rm, | |||
424 | m_root_theme.reset(new RootTheme(imageControl())); | 424 | m_root_theme.reset(new RootTheme(imageControl())); |
425 | m_root_theme->reconfigTheme(); | 425 | m_root_theme->reconfigTheme(); |
426 | 426 | ||
427 | m_tracker.join(resource.focused_alpha.modifiedSig(), | ||
428 | MemFun(*focusedWinFrameTheme(), &FbWinFrameTheme::setAlpha)); | ||
427 | focusedWinFrameTheme()->setAlpha(*resource.focused_alpha); | 429 | focusedWinFrameTheme()->setAlpha(*resource.focused_alpha); |
430 | |||
431 | m_tracker.join(resource.unfocused_alpha.modifiedSig(), | ||
432 | MemFun(*unfocusedWinFrameTheme(), &FbWinFrameTheme::setAlpha)); | ||
428 | unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); | 433 | unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); |
434 | |||
429 | m_menutheme->setAlpha(*resource.menu_alpha); | 435 | m_menutheme->setAlpha(*resource.menu_alpha); |
430 | 436 | ||
431 | m_menutheme->setDelay(*resource.menu_delay); | 437 | m_menutheme->setDelay(*resource.menu_delay); |
@@ -832,8 +838,6 @@ BScreen::addExtraWindowMenu(const FbTk::FbString &label, const FbTk::RefCount<Fb | |||
832 | } | 838 | } |
833 | 839 | ||
834 | void BScreen::reconfigure() { | 840 | void BScreen::reconfigure() { |
835 | focusedWinFrameTheme()->setAlpha(*resource.focused_alpha); | ||
836 | unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); | ||
837 | m_menutheme->setAlpha(*resource.menu_alpha); | 841 | m_menutheme->setAlpha(*resource.menu_alpha); |
838 | 842 | ||
839 | m_menutheme->setDelay(*resource.menu_delay); | 843 | m_menutheme->setDelay(*resource.menu_delay); |