small underscores fix for GTK 1.0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-09-18 17:59:05 +00:00
parent 572d746108
commit 90a53a3aed
2 changed files with 4 additions and 0 deletions

View 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;
}

View 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;
}