X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/db1b49617679e97304ddc36491bfcdc14381d904..2b9bd418c5ca5cfabf1d183db391893d1040b5f2:/include/wx/gtk/menuitem.h diff --git a/include/wx/gtk/menuitem.h b/include/wx/gtk/menuitem.h index 99c0a659d6..77f08d493e 100644 --- a/include/wx/gtk/menuitem.h +++ b/include/wx/gtk/menuitem.h @@ -50,7 +50,9 @@ public: // the item's text = name void SetName(const wxString& str); + void SetText(const wxString& str) { SetName(str); } // compatibility const wxString& GetName() const { return m_text; } + const wxString& GetText() const { return GetName(); } // what kind of menu item we are void SetCheckable(bool checkable) { m_isCheckMenu = checkable; } @@ -60,7 +62,7 @@ public: bool IsSubMenu() const { return m_subMenu != NULL; } // state - void Enable( bool enable = TRUE ); + void Enable( bool enable = TRUE ); bool IsEnabled() const { return m_isEnabled; } void Check( bool check = TRUE ); bool IsChecked() const; @@ -86,5 +88,5 @@ private: }; -#endif +#endif //__GTKMENUITEMH__