From 4e5ea3a83b8fda375159218d8ab947647aea7c81 Mon Sep 17 00:00:00 2001
From: fluxgen <fluxgen>
Date: Tue, 13 May 2003 00:24:00 +0000
Subject: moved find to public area and fixed const

---
 src/FbTk/Menu.hh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/FbTk/Menu.hh b/src/FbTk/Menu.hh
index 9e0d79f..5dd0eb8 100644
--- a/src/FbTk/Menu.hh
+++ b/src/FbTk/Menu.hh
@@ -22,7 +22,7 @@
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 // DEALINGS IN THE SOFTWARE.
 
-// $Id: Menu.hh,v 1.14 2003/04/25 16:23:59 fluxgen Exp $
+// $Id: Menu.hh,v 1.15 2003/05/13 00:24:00 fluxgen Exp $
 
 #ifndef	 FBTK_MENU_HH
 #define	 FBTK_MENU_HH
@@ -142,16 +142,17 @@ public:
     bool isItemSelected(unsigned int index) const;
     bool isItemEnabled(unsigned int index) const;
     static unsigned char alpha() { return s_alpha; }
+    /// @return menuitem at index
+    inline const MenuItem *find(unsigned int index) const { return menuitems[index]; }
+    inline MenuItem *find(unsigned int index) { return menuitems[index]; }
     //@}
 
 protected:
 
-    inline MenuItem *find(unsigned int index) const { return menuitems[index]; }
     inline void setTitleVisibility(bool b) { title_vis = b; }
     inline void setMovable(bool b) { movable = b; }
     inline void setHideTree(bool h) { hide_tree = h; }
 
-
     virtual void itemSelected(int button, unsigned int index) { }
     virtual void drawItem(unsigned int index, bool highlight = false, 
                           bool clear= false, bool render_trans = true,
-- 
cgit v0.11.2