diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-18 05:09:20 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-18 05:09:20 (GMT) |
commit | 31df2d8bd618cae590d9b0e76aee11021d4c77d3 (patch) | |
tree | 3be26fb88b0e0178a728bd9968eea2e93f62b6f6 /src/BoolMenuItem.hh | |
parent | c39af52bfca7f6962048a102597d88337c949b67 (diff) | |
download | fluxbox-31df2d8bd618cae590d9b0e76aee11021d4c77d3.zip fluxbox-31df2d8bd618cae590d9b0e76aee11021d4c77d3.tar.bz2 |
make MenuItem responsible for decision to close menu when clicked
Diffstat (limited to 'src/BoolMenuItem.hh')
-rw-r--r-- | src/BoolMenuItem.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/BoolMenuItem.hh b/src/BoolMenuItem.hh index 29eef15..d10a7ac 100644 --- a/src/BoolMenuItem.hh +++ b/src/BoolMenuItem.hh | |||
@@ -34,11 +34,13 @@ public: | |||
34 | FbTk::MenuItem(label, cmd), m_item(item) { | 34 | FbTk::MenuItem(label, cmd), m_item(item) { |
35 | FbTk::MenuItem::setSelected(m_item); | 35 | FbTk::MenuItem::setSelected(m_item); |
36 | setToggleItem(true); | 36 | setToggleItem(true); |
37 | setCloseOnClick(false); | ||
37 | } | 38 | } |
38 | BoolMenuItem(const FbTk::FbString &label, bool &item): | 39 | BoolMenuItem(const FbTk::FbString &label, bool &item): |
39 | FbTk::MenuItem(label), m_item(item) { | 40 | FbTk::MenuItem(label), m_item(item) { |
40 | FbTk::MenuItem::setSelected(m_item); | 41 | FbTk::MenuItem::setSelected(m_item); |
41 | setToggleItem(true); | 42 | setToggleItem(true); |
43 | setCloseOnClick(false); | ||
42 | } | 44 | } |
43 | bool isSelected() const { return m_item; } | 45 | bool isSelected() const { return m_item; } |
44 | // toggle state | 46 | // toggle state |