From 90a53a3aedca499a8e11d8f474981f3bd29651e8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 18 Sep 1999 17:59:05 +0000 Subject: [PATCH 1/1] small underscores fix for GTK 1.0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/menu.cpp | 2 ++ src/gtk1/menu.cpp | 2 ++ 2 files changed, 4 insertions(+) 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; } -- 2.47.2