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:
@@ -216,12 +216,14 @@ void wxMenuBar::Append( wxMenu *menu, const wxString &title )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#if __WXGTK12__
|
||||||
if ( *pc == _T('_') )
|
if ( *pc == _T('_') )
|
||||||
{
|
{
|
||||||
// underscores must be doubled to prevent them from being
|
// underscores must be doubled to prevent them from being
|
||||||
// interpreted as accelerator character prefix by GTK
|
// interpreted as accelerator character prefix by GTK
|
||||||
str << *pc;
|
str << *pc;
|
||||||
}
|
}
|
||||||
|
#endif // GTK+ 1.2
|
||||||
|
|
||||||
str << *pc;
|
str << *pc;
|
||||||
}
|
}
|
||||||
|
@@ -216,12 +216,14 @@ void wxMenuBar::Append( wxMenu *menu, const wxString &title )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#if __WXGTK12__
|
||||||
if ( *pc == _T('_') )
|
if ( *pc == _T('_') )
|
||||||
{
|
{
|
||||||
// underscores must be doubled to prevent them from being
|
// underscores must be doubled to prevent them from being
|
||||||
// interpreted as accelerator character prefix by GTK
|
// interpreted as accelerator character prefix by GTK
|
||||||
str << *pc;
|
str << *pc;
|
||||||
}
|
}
|
||||||
|
#endif // GTK+ 1.2
|
||||||
|
|
||||||
str << *pc;
|
str << *pc;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user