aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-11 15:29:02 (GMT)
committerPaul Tagliamonte <paultag@fluxbox.org>2012-04-07 02:11:31 (GMT)
commit56b0a9c4c7677c8d03341bc52694c45845700ea0 (patch)
tree58bd060ce0088b72c724df8156ec1ba3a1bacce2 /src/Window.cc
parent30df36260411112985fdc6ded6d8ad17e079752d (diff)
downloadfluxbox_paul-56b0a9c4c7677c8d03341bc52694c45845700ea0.zip
fluxbox_paul-56b0a9c4c7677c8d03341bc52694c45845700ea0.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.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 19f6fae..ebe3428 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -3674,7 +3674,9 @@ void FluxboxWindow::associateClient(WinClient &client) {
3674 frame().theme().unfocusedTheme()->iconbarTheme(), client); 3674 frame().theme().unfocusedTheme()->iconbarTheme(), client);
3675 frame().createTab(*btn); 3675 frame().createTab(*btn);
3676 3676
3677 btn->setTextPadding(Fluxbox::instance()->getTabsPadding()); 3677 btn->signalTracker().join(Fluxbox::instance()->getTabsPaddingResource().modifiedSig(),
3678 FbTk::MemFun(static_cast<FbTk::TextButton &>(*btn), &FbTk::TextButton::setTextPadding));
3679 btn->setTextPadding(*Fluxbox::instance()->getTabsPaddingResource());
3678 btn->setPixmap(screen().getTabsUsePixmap()); 3680 btn->setPixmap(screen().getTabsUsePixmap());
3679 3681
3680 m_labelbuttons[&client] = btn; 3682 m_labelbuttons[&client] = btn;