aboutsummaryrefslogtreecommitdiff
path: root/src/ClockTool.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-18 05:44:17 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-18 05:44:17 (GMT)
commitc01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0 (patch)
tree7e25c017727402a33fd8e4c851b5bab9e6add568 /src/ClockTool.cc
parent31df2d8bd618cae590d9b0e76aee11021d4c77d3 (diff)
downloadfluxbox_pavel-c01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0.zip
fluxbox_pavel-c01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0.tar.bz2
holding control will now keep the menu open
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;