#include "wx/menu.h"
#include "wx/log.h"
#include "wx/intl.h"
+#include "wx/app.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
return FALSE;
}
+wxString wxMenuBar::GetLabel( int id ) const
+{
+ wxMenuItem* item = FindMenuItemById( id );
+ if (item) return item->GetText();
+ return "";
+}
+
+void wxMenuBar::SetLabel( int id, const wxString &label )
+{
+ wxMenuItem* item = FindMenuItemById( id );
+ if (item) return item->SetText( label );
+}
+
+void wxMenuBar::EnableTop( int WXUNUSED(pos), bool WXUNUSED(flag) )
+{
+}
+
+wxString wxMenuBar::GetLabelTop( int WXUNUSED(pos) ) const
+{
+ return "menu";
+}
+
+void wxMenuBar::SetLabelTop( int WXUNUSED(pos), const wxString& WXUNUSED(label) )
+{
+}
+
//-----------------------------------------------------------------------------
// "activate"
//-----------------------------------------------------------------------------
else
{
/* the user pressed on the menu item -> report */
- item->m_isChecked; /* make consistent again */
+ item->m_isChecked = item->IsChecked(); /* make consistent again */
}
}