aboutsummaryrefslogtreecommitdiff
path: root/src/ClockTool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClockTool.cc')
-rw-r--r--src/ClockTool.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ClockTool.cc b/src/ClockTool.cc
index b396999..0f4695b 100644
--- a/src/ClockTool.cc
+++ b/src/ClockTool.cc
@@ -61,9 +61,10 @@ public:
61 setLabel( _FB_XTEXT(Toolbar, Clock24, "Clock: 24h", "set Clockmode to 24h") ); 61 setLabel( _FB_XTEXT(Toolbar, Clock24, "Clock: 24h", "set Clockmode to 24h") );
62 else 62 else
63 setLabel( _FB_XTEXT(Toolbar, Clock12, "Clock: 12h", "set Clockmode to 12h") ); 63 setLabel( _FB_XTEXT(Toolbar, Clock12, "Clock: 12h", "set Clockmode to 12h") );
64 setCloseOnClick(false);
64 } 65 }
65 66
66 void click(int button, int time) { 67 void click(int button, int time, unsigned int mods) {
67 std::string newformat = m_tool.timeFormat(); 68 std::string newformat = m_tool.timeFormat();
68 size_t pos = newformat.find("%k"); 69 size_t pos = newformat.find("%k");
69 std::string newstr; 70 std::string newstr;
@@ -112,7 +113,7 @@ public:
112 setLabel( _FB_XTEXT(Toolbar, Clock12, "Clock: 12h", "set Clockmode to 12h") ); 113 setLabel( _FB_XTEXT(Toolbar, Clock12, "Clock: 12h", "set Clockmode to 12h") );
113 114
114 } // else some other strange format...so we don't do anything 115 } // else some other strange format...so we don't do anything
115 FbTk::MenuItem::click(button, time); 116 FbTk::MenuItem::click(button, time, mods);
116 } 117 }
117private: 118private:
118 ClockTool &m_tool; 119 ClockTool &m_tool;