X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf4219e77adb387bd514b83e0c841f563b4016c6..7c78e7c70271608b076b1dbed201b1204e6898d4:/src/gtk1/menu.cpp?ds=sidebyside diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index 752968ab3f..46a12dee68 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -122,19 +122,31 @@ wxMenuItem* wxMenuBar::FindMenuItemById( int id ) const return result; } -bool wxMenuBar::IsChecked( int id ) const +void wxMenuBar::Check( int id, bool check ) +{ + wxMenuItem* item = FindMenuItemById( id ); + if (item) item->Check(check); +}; + +bool wxMenuBar::Checked( int id ) const { wxMenuItem* item = FindMenuItemById( id ); if (item) return item->IsChecked(); return FALSE; -} +}; -bool wxMenuBar::IsEnabled( int id ) const +void wxMenuBar::Enable( int id, bool enable ) +{ + wxMenuItem* item = FindMenuItemById( id ); + if (item) item->Enable(enable); +}; + +bool wxMenuBar::Enabled( int id ) const { wxMenuItem* item = FindMenuItemById( id ); if (item) return item->IsEnabled(); return FALSE; -} +}; //----------------------------------------------------------------------------- // wxMenu