aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-18 15:54:11 (GMT)
committerPaul Tagliamonte <paultag@fluxbox.org>2012-04-07 02:11:32 (GMT)
commita68149605b6e75c83b6e4431b46468dfc3aeebb8 (patch)
tree1d21d6fd2d777a11ed1e62ea52f5dfe872fceb28
parentc41fdcc288e1ffb76e23923dc6f5a1ce97d4c884 (diff)
downloadfluxbox_paul-a68149605b6e75c83b6e4431b46468dfc3aeebb8.zip
fluxbox_paul-a68149605b6e75c83b6e4431b46468dfc3aeebb8.tar.bz2
Attach modifiedSig handlers to the session.screenX.tabs.usePixmap resource
-rw-r--r--src/Screen.hh2
-rw-r--r--src/Window.cc11
2 files changed, 5 insertions, 8 deletions
diff --git a/src/Screen.hh b/src/Screen.hh
index 3b54815..58fd5ba 100644
--- a/src/Screen.hh
+++ b/src/Screen.hh
@@ -126,7 +126,7 @@ public:
126 const bool allowRemoteActions() const { return *resource.allow_remote_actions; } 126 const bool allowRemoteActions() const { return *resource.allow_remote_actions; }
127 const bool clientMenuUsePixmap() const { return *resource.clientmenu_use_pixmap; } 127 const bool clientMenuUsePixmap() const { return *resource.clientmenu_use_pixmap; }
128 const bool getDefaultInternalTabs() const { return *resource.default_internal_tabs; } 128 const bool getDefaultInternalTabs() const { return *resource.default_internal_tabs; }
129 const bool getTabsUsePixmap() const { return *resource.tabs_use_pixmap; } 129 FbTk::BoolResource &getTabsUsePixmapResource() { return resource.tabs_use_pixmap; }
130 const bool getMaxOverTabs() const { return *resource.max_over_tabs; } 130 const bool getMaxOverTabs() const { return *resource.max_over_tabs; }
131 131
132 unsigned int getTabWidth() const { return *resource.tab_width; } 132 unsigned int getTabWidth() const { return *resource.tab_width; }
diff --git a/src/Window.cc b/src/Window.cc
index 5b85f82..38bf748 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1061,12 +1061,6 @@ void FluxboxWindow::reconfigure() {
1061 1061
1062 frame().reconfigure(); 1062 frame().reconfigure();
1063 menu().reconfigure(); 1063 menu().reconfigure();
1064
1065 Client2ButtonMap::iterator it = m_labelbuttons.begin(),
1066 it_end = m_labelbuttons.end();
1067 for (; it != it_end; ++it)
1068 it->second->setPixmap(screen().getTabsUsePixmap());
1069
1070} 1064}
1071 1065
1072void FluxboxWindow::updateMWMHintsFromClient(WinClient &client) { 1066void FluxboxWindow::updateMWMHintsFromClient(WinClient &client) {
@@ -3683,7 +3677,10 @@ void FluxboxWindow::associateClient(WinClient &client) {
3683 btn->signalTracker().join(Fluxbox::instance()->getTabsPaddingResource().modifiedSig(), 3677 btn->signalTracker().join(Fluxbox::instance()->getTabsPaddingResource().modifiedSig(),
3684 FbTk::MemFun(static_cast<FbTk::TextButton &>(*btn), &FbTk::TextButton::setTextPadding)); 3678 FbTk::MemFun(static_cast<FbTk::TextButton &>(*btn), &FbTk::TextButton::setTextPadding));
3685 btn->setTextPadding(*Fluxbox::instance()->getTabsPaddingResource()); 3679 btn->setTextPadding(*Fluxbox::instance()->getTabsPaddingResource());
3686 btn->setPixmap(screen().getTabsUsePixmap()); 3680
3681 btn->signalTracker().join(screen().getTabsUsePixmapResource().modifiedSig(),
3682 FbTk::MemFun(*btn, &IconButton::setPixmap));
3683 btn->setPixmap(*screen().getTabsUsePixmapResource());
3687 3684
3688 m_labelbuttons[&client] = btn; 3685 m_labelbuttons[&client] = btn;
3689 3686