From: Vadim Zeitlin Date: Sat, 18 Sep 1999 17:59:05 +0000 (+0000) Subject: small underscores fix for GTK 1.0 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/90a53a3aedca499a8e11d8f474981f3bd29651e8 small underscores fix for GTK 1.0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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; }