aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/Menu.cc4
-rw-r--r--src/FbTk/Menu.hh2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index b067361..e70fa76 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -747,7 +747,7 @@ void Menu::drawSubmenu(unsigned int index) {
747 747
748} 748}
749 749
750 750#ifdef NOT_USED
751bool Menu::hasSubmenu(unsigned int index) const { 751bool Menu::hasSubmenu(unsigned int index) const {
752 if (index >= menuitems.size()) //boundary check 752 if (index >= menuitems.size()) //boundary check
753 return false; 753 return false;
@@ -757,7 +757,7 @@ bool Menu::hasSubmenu(unsigned int index) const {
757 757
758 return true; 758 return true;
759} 759}
760 760#endif // NOT_USED
761 761
762int Menu::drawItem(FbDrawable &drawable, unsigned int index, 762int Menu::drawItem(FbDrawable &drawable, unsigned int index,
763 bool highlight, bool exclusive_drawable) { 763 bool highlight, bool exclusive_drawable) {
diff --git a/src/FbTk/Menu.hh b/src/FbTk/Menu.hh
index f8a7db8..4b749dc 100644
--- a/src/FbTk/Menu.hh
+++ b/src/FbTk/Menu.hh
@@ -154,7 +154,9 @@ public:
154 inline unsigned int height() const { return menu.window.height(); } 154 inline unsigned int height() const { return menu.window.height(); }
155 inline size_t numberOfItems() const { return menuitems.size(); } 155 inline size_t numberOfItems() const { return menuitems.size(); }
156 inline int currentSubmenu() const { return m_which_sub; } 156 inline int currentSubmenu() const { return m_which_sub; }
157#ifdef NOT_USED
157 bool hasSubmenu(unsigned int index) const; 158 bool hasSubmenu(unsigned int index) const;
159#endif
158 bool isItemSelected(unsigned int index) const; 160 bool isItemSelected(unsigned int index) const;
159 bool isItemEnabled(unsigned int index) const; 161 bool isItemEnabled(unsigned int index) const;
160 bool isItemSelectable(unsigned int index) const; 162 bool isItemSelectable(unsigned int index) const;