diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 3520e227ec..6b95c406e7 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -216,12 +216,14 @@ void wxMenuBar::Append( wxMenu *menu, const wxString &title ) } else { +#if __WXGTK12__ if ( *pc == _T('_') ) { // underscores must be doubled to prevent them from being // interpreted as accelerator character prefix by GTK str << *pc; } +#endif // GTK+ 1.2 str << *pc; } diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index 3520e227ec..6b95c406e7 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -216,12 +216,14 @@ void wxMenuBar::Append( wxMenu *menu, const wxString &title ) } else { +#if __WXGTK12__ if ( *pc == _T('_') ) { // underscores must be doubled to prevent them from being // interpreted as accelerator character prefix by GTK str << *pc; } +#endif // GTK+ 1.2 str << *pc; }