diff options
author | simonb <simonb> | 2006-05-20 15:08:14 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-05-20 15:08:14 (GMT) |
commit | 0861f3a9073ccd016302af26ff992fa19331a02d (patch) | |
tree | f1a2276449a5fc9b27f2d1afa5ffff4410141345 /src/IntResMenuItem.cc | |
parent | 5ddabb0f390f69db793b5a6e40be9f94b8f83136 (diff) | |
download | fluxbox-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.cc | 6 |
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 | ||
47 | IntResMenuItem::IntResMenuItem(const char *label, FbTk::Resource<int> &res, int min_val, int max_val, FbTk::Menu &host_menu): | 47 | IntResMenuItem::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 | ||
53 | void IntResMenuItem::click(int button, int time) { | 53 | void 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 | ||