diff options
Diffstat (limited to 'src/FbTk/IntMenuItem.hh')
-rw-r--r-- | src/FbTk/IntMenuItem.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/IntMenuItem.hh b/src/FbTk/IntMenuItem.hh index 6246787..a1431fb 100644 --- a/src/FbTk/IntMenuItem.hh +++ b/src/FbTk/IntMenuItem.hh | |||
@@ -35,7 +35,7 @@ public: | |||
35 | IntMenuItem(const FbTk::FbString &label, Accessor<int> &res, | 35 | IntMenuItem(const FbTk::FbString &label, Accessor<int> &res, |
36 | int min_val, int max_val, FbTk::Menu &host_menu) : | 36 | int min_val, int max_val, FbTk::Menu &host_menu) : |
37 | FbTk::MenuItem(label, host_menu), m_org_label(FbTk::MenuItem::label()), | 37 | FbTk::MenuItem(label, host_menu), m_org_label(FbTk::MenuItem::label()), |
38 | m_max(max_val), m_min(min_val), m_res(res) { | 38 | m_max(max_val), m_min(min_val), m_res(res) { |
39 | updateLabel(); | 39 | updateLabel(); |
40 | setCloseOnClick(false); | 40 | setCloseOnClick(false); |
41 | } | 41 | } |
@@ -77,7 +77,7 @@ public: | |||
77 | updateLabel(); | 77 | updateLabel(); |
78 | // call other commands | 78 | // call other commands |
79 | FbTk::MenuItem::click(button, time, mods); | 79 | FbTk::MenuItem::click(button, time, mods); |
80 | 80 | ||
81 | // show new value, which for us means forcing a full menu update | 81 | // show new value, which for us means forcing a full menu update |
82 | // since the text is drawn onto the background! | 82 | // since the text is drawn onto the background! |
83 | if (menu()) { | 83 | if (menu()) { |