]> git.saurik.com Git - wxWidgets.git/commitdiff
small underscores fix for GTK 1.0
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 18 Sep 1999 17:59:05 +0000 (17:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 18 Sep 1999 17:59:05 +0000 (17:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/menu.cpp
src/gtk1/menu.cpp

index 3520e227ecaeef786288a281afad936b19d6189d..6b95c406e78b3d650ed000313c70cc37dbbc17f6 100644 (file)
@@ -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;
         }
index 3520e227ecaeef786288a281afad936b19d6189d..6b95c406e78b3d650ed000313c70cc37dbbc17f6 100644 (file)
@@ -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;
         }