aboutsummaryrefslogtreecommitdiff
path: root/src/IconButton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r--src/IconButton.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc
index ab53196..d36987f 100644
--- a/src/IconButton.cc
+++ b/src/IconButton.cc
@@ -109,7 +109,7 @@ private:
109class WheelWorkspaceCmd : public FbTk::Command { 109class WheelWorkspaceCmd : public FbTk::Command {
110public: 110public:
111 explicit WheelWorkspaceCmd(const IconbarTool& tool, FluxboxWindow &win, const char* cmd) : 111 explicit WheelWorkspaceCmd(const IconbarTool& tool, FluxboxWindow &win, const char* cmd) :
112 m_win(win), m_tool(tool), m_cmd(CommandParser::instance().parseLine(cmd)){ } 112 m_win(win), m_cmd(CommandParser::instance().parseLine(cmd)), m_tool(tool) { }
113 void execute() { 113 void execute() {
114 114
115 switch(m_tool.wheelMode()) { 115 switch(m_tool.wheelMode()) {
@@ -245,7 +245,7 @@ void IconButton::update(FbTk::Subject *subj) {
245 FbTk::translateSize(orientation(), w, h); 245 FbTk::translateSize(orientation(), w, h);
246 int iconx = 1, icony = 1; 246 int iconx = 1, icony = 1;
247 unsigned int neww = w, newh = h; 247 unsigned int neww = w, newh = h;
248 if (newh > 2*icony) 248 if (newh > 2*static_cast<unsigned>(icony))
249 newh -= 2*icony; 249 newh -= 2*icony;
250 else 250 else
251 newh = 1; 251 newh = 1;