diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-11 15:29:02 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2013-02-17 09:50:17 (GMT) |
commit | 33ee29f5d4fcc59fc9991c7127674d9cf51ff4fc (patch) | |
tree | a43fe324751ecbdb4b7ca0e045079a38c6393b67 /src/Window.cc | |
parent | 4af85aa91b3eba033c649c88159d93d73a24fc07 (diff) | |
download | fluxbox_pavel-33ee29f5d4fcc59fc9991c7127674d9cf51ff4fc.zip fluxbox_pavel-33ee29f5d4fcc59fc9991c7127674d9cf51ff4fc.tar.bz2 |
Attach a modifiedSig handler to the session.tabPadding resource
ps: this is a bonus, without this one needed to completely restart fluxbox for the updates to
tabPadding to take effect.
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc index e55a258..bf46f0b 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -3681,7 +3681,9 @@ void FluxboxWindow::associateClient(WinClient &client) { | |||
3681 | frame().theme().unfocusedTheme()->iconbarTheme(), client); | 3681 | frame().theme().unfocusedTheme()->iconbarTheme(), client); |
3682 | frame().createTab(*btn); | 3682 | frame().createTab(*btn); |
3683 | 3683 | ||
3684 | btn->setTextPadding(Fluxbox::instance()->getTabsPadding()); | 3684 | btn->signalTracker().join(Fluxbox::instance()->getTabsPaddingResource().modifiedSig(), |
3685 | FbTk::MemFun(static_cast<FbTk::TextButton &>(*btn), &FbTk::TextButton::setTextPadding)); | ||
3686 | btn->setTextPadding(*Fluxbox::instance()->getTabsPaddingResource()); | ||
3685 | btn->setPixmap(screen().getTabsUsePixmap()); | 3687 | btn->setPixmap(screen().getTabsUsePixmap()); |
3686 | 3688 | ||
3687 | m_labelbuttons[&client] = btn; | 3689 | m_labelbuttons[&client] = btn; |