X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a5a83677555023d476401bab5809a1107222c74..e6886957b4b3a8dfc0fb85c22c62e132a357defd:/src/gtk1/menu.cpp diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index 0e99bfef14..93bc49891b 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -15,6 +15,7 @@ #include "wx/menu.h" #include "wx/log.h" +#include "wx/intl.h" //----------------------------------------------------------------------------- // wxMenuBar @@ -183,6 +184,7 @@ wxMenuItem::wxMenuItem() void wxMenuItem::SetText(const wxString& str) { + m_text = ""; for ( const char *pc = str; *pc != '\0'; pc++ ) { if ( *pc == '&' ) pc++; // skip it @@ -193,7 +195,7 @@ void wxMenuItem::SetText(const wxString& str) void wxMenuItem::Check( bool check ) { - wxCHECK_RET( IsCheckable(), _("can't check uncheckable item!") ) + wxCHECK_RET( IsCheckable(), _("Can't check uncheckable item!") ) m_isChecked = check; gtk_check_menu_item_set_state( (GtkCheckMenuItem*)m_menuItem, (gint)check );