diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-18 15:54:11 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2013-02-18 21:04:23 (GMT) |
commit | f41794f2f55ed0835316e4f9d0a3e20d881d3cbd (patch) | |
tree | 1b8a79315e679824c0e206746bd5f813c56b539a | |
parent | 7ae541c1ea57b96a3d990d23f0940f42a53352d3 (diff) | |
download | fluxbox_pavel-f41794f2f55ed0835316e4f9d0a3e20d881d3cbd.zip fluxbox_pavel-f41794f2f55ed0835316e4f9d0a3e20d881d3cbd.tar.bz2 |
Attach modifiedSig handlers to the session.screenX.tabs.usePixmap resource
-rw-r--r-- | src/Screen.hh | 2 | ||||
-rw-r--r-- | src/Window.cc | 11 |
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 81d5059..a8756b7 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -1071,12 +1071,6 @@ void FluxboxWindow::reconfigure() { | |||
1071 | updateButtons(); | 1071 | updateButtons(); |
1072 | frame().reconfigure(); | 1072 | frame().reconfigure(); |
1073 | menu().reconfigure(); | 1073 | menu().reconfigure(); |
1074 | |||
1075 | Client2ButtonMap::iterator it = m_labelbuttons.begin(), | ||
1076 | it_end = m_labelbuttons.end(); | ||
1077 | for (; it != it_end; ++it) | ||
1078 | it->second->setPixmap(screen().getTabsUsePixmap()); | ||
1079 | |||
1080 | } | 1074 | } |
1081 | 1075 | ||
1082 | void FluxboxWindow::updateMWMHintsFromClient(WinClient &client) { | 1076 | void FluxboxWindow::updateMWMHintsFromClient(WinClient &client) { |
@@ -3695,7 +3689,10 @@ void FluxboxWindow::associateClient(WinClient &client) { | |||
3695 | btn->signalTracker().join(Fluxbox::instance()->getTabsPaddingResource().modifiedSig(), | 3689 | btn->signalTracker().join(Fluxbox::instance()->getTabsPaddingResource().modifiedSig(), |
3696 | FbTk::MemFun(static_cast<FbTk::TextButton &>(*btn), &FbTk::TextButton::setTextPadding)); | 3690 | FbTk::MemFun(static_cast<FbTk::TextButton &>(*btn), &FbTk::TextButton::setTextPadding)); |
3697 | btn->setTextPadding(*Fluxbox::instance()->getTabsPaddingResource()); | 3691 | btn->setTextPadding(*Fluxbox::instance()->getTabsPaddingResource()); |
3698 | btn->setPixmap(screen().getTabsUsePixmap()); | 3692 | |
3693 | btn->signalTracker().join(screen().getTabsUsePixmapResource().modifiedSig(), | ||
3694 | FbTk::MemFun(*btn, &IconButton::setPixmap)); | ||
3695 | btn->setPixmap(*screen().getTabsUsePixmapResource()); | ||
3699 | 3696 | ||
3700 | m_labelbuttons[&client] = btn; | 3697 | m_labelbuttons[&client] = btn; |
3701 | 3698 | ||