aboutsummaryrefslogtreecommitdiff
path: root/src/IntResMenuItem.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-05-20 15:08:14 (GMT)
committersimonb <simonb>2006-05-20 15:08:14 (GMT)
commit0861f3a9073ccd016302af26ff992fa19331a02d (patch)
treef1a2276449a5fc9b27f2d1afa5ffff4410141345 /src/IntResMenuItem.cc
parent5ddabb0f390f69db793b5a6e40be9f94b8f83136 (diff)
downloadfluxbox-0861f3a9073ccd016302af26ff992fa19331a02d.zip
fluxbox-0861f3a9073ccd016302af26ff992fa19331a02d.tar.bz2
improve native language handling, move messages and menu labels to
FbTk::FbString
Diffstat (limited to 'src/IntResMenuItem.cc')
-rw-r--r--src/IntResMenuItem.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/IntResMenuItem.cc b/src/IntResMenuItem.cc
index 30aead1..f81e021 100644
--- a/src/IntResMenuItem.cc
+++ b/src/IntResMenuItem.cc
@@ -44,10 +44,10 @@ std::string appendIntValue(const std::string &label, int value) {
44 44
45}; 45};
46 46
47IntResMenuItem::IntResMenuItem(const char *label, FbTk::Resource<int> &res, int min_val, int max_val, FbTk::Menu &host_menu): 47IntResMenuItem::IntResMenuItem(const FbTk::FbString &label, FbTk::Resource<int> &res, int min_val, int max_val, FbTk::Menu &host_menu):
48 FbTk::MenuItem(label, host_menu), m_org_label(FbTk::MenuItem::label()), 48 FbTk::MenuItem(label, host_menu), m_org_label(FbTk::MenuItem::label()),
49 m_max(max_val), m_min(min_val), m_res(res) { 49 m_max(max_val), m_min(min_val), m_res(res) {
50 setLabel(appendIntValue(m_org_label, *m_res).c_str()); 50 setLabel(appendIntValue(m_org_label, *m_res));
51} 51}
52 52
53void IntResMenuItem::click(int button, int time) { 53void IntResMenuItem::click(int button, int time) {
@@ -72,7 +72,7 @@ void IntResMenuItem::click(int button, int time) {
72 *m_res = m_min; 72 *m_res = m_min;
73 73
74 // update label 74 // update label
75 setLabel(appendIntValue(m_org_label, *m_res).c_str()); 75 setLabel(appendIntValue(m_org_label, *m_res));
76 // call other commands 76 // call other commands
77 FbTk::MenuItem::click(button, time); 77 FbTk::MenuItem::click(button, time);
78 78