aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTool.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-15 00:07:09 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-15 00:07:09 (GMT)
commit12e1ef78265a621dc51f7b9af245d81431835dcc (patch)
treeb1e7c9ec99f24c89989a34cb994119319184abb7 /src/IconbarTool.cc
parentba316aa18a8813958cedea1cc4d54452e40c4b59 (diff)
downloadfluxbox-12e1ef78265a621dc51f7b9af245d81431835dcc.zip
fluxbox-12e1ef78265a621dc51f7b9af245d81431835dcc.tar.bz2
code deduplication by using <algorithm> and FbTk/STLUtil.hh
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r--src/IconbarTool.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc
index 14835cb..cd47d45 100644
--- a/src/IconbarTool.cc
+++ b/src/IconbarTool.cc
@@ -48,6 +48,9 @@
48#include "FbTk/MacroCommand.hh" 48#include "FbTk/MacroCommand.hh"
49#include "FbTk/MenuSeparator.hh" 49#include "FbTk/MenuSeparator.hh"
50#include "FbTk/Util.hh" 50#include "FbTk/Util.hh"
51#include "FbTk/STLUtil.hh"
52#include "FbTk/Select2nd.hh"
53#include "FbTk/Compose.hh"
51 54
52#include <typeinfo> 55#include <typeinfo>
53#include <iterator> 56#include <iterator>
@@ -465,10 +468,9 @@ void IconbarTool::updateSizing() {
465 m_icon_container.setBorderWidth(m_theme.border().width()); 468 m_icon_container.setBorderWidth(m_theme.border().width());
466 m_icon_container.setBorderColor(m_theme.border().color()); 469 m_icon_container.setBorderColor(m_theme.border().color());
467 470
468 IconMap::iterator icon_it = m_icons.begin(); 471 FbTk::STLUtil::forAll(m_icons,
469 const IconMap::iterator icon_it_end = m_icons.end(); 472 FbTk::Compose(std::mem_fun(&IconButton::reconfigTheme),
470 for (; icon_it != icon_it_end; ++icon_it) 473 FbTk::Select2nd<IconMap::value_type>()));
471 icon_it->second->reconfigTheme();
472 474
473} 475}
474 476