From 27101610aab87710b2d2629767f94c9bf598911e Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Fri, 5 Aug 2011 13:18:55 +0200 Subject: Remove theme reconfig handlers in iconbartool as far as i can tell, they weren't doing anything and I observed no issues after removing them. --- src/IconbarTool.cc | 11 +---------- src/IconbarTool.hh | 2 -- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc index 73f0003..a912030 100644 --- a/src/IconbarTool.cc +++ b/src/IconbarTool.cc @@ -270,12 +270,7 @@ IconbarTool::IconbarTool(const FbTk::FbWindow &parent, IconbarTheme &theme, menu.insert(m_menu->label().logical(), FbTk::RefCount(m_menu)); // setup signals - m_tracker.join(theme.reconfigSig(), FbTk::MemFun(*this, &IconbarTool::themeReconfigured)); - m_tracker.join(focused_theme.reconfigSig(), - FbTk::MemFun(*this, &IconbarTool::themeReconfigured)); - m_tracker.join(unfocused_theme.reconfigSig(), - FbTk::MemFun(*this, &IconbarTool::themeReconfigured)); - themeReconfigured(); + setMode(*m_rc_mode); } IconbarTool::~IconbarTool() { @@ -366,10 +361,6 @@ unsigned int IconbarTool::borderWidth() const { return m_icon_container.borderWidth(); } -void IconbarTool::themeReconfigured() { - setMode(*m_rc_mode); -} - void IconbarTool::update(UpdateReason reason, Focusable *win) { // ignore updates if we're shutting down if (m_screen.isShuttingdown()) { diff --git a/src/IconbarTool.hh b/src/IconbarTool.hh index 9091a91..6ce3c35 100644 --- a/src/IconbarTool.hh +++ b/src/IconbarTool.hh @@ -97,8 +97,6 @@ private: /// called when the list emits a signal void update(UpdateReason reason, Focusable *win); - void themeReconfigured(); - BScreen &m_screen; FbTk::Container m_icon_container; IconbarTheme &m_theme; -- cgit v0.11.2