Lots of Pango etc up-ports from HEAD.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2003-02-11 11:35:15 +00:00
parent 7cc3aa347b
commit adb5f43a58
22 changed files with 447 additions and 266 deletions

View File

@@ -145,7 +145,7 @@ static wxString wxReplaceUnderscore( const wxString& title )
#endif
else
{
#if __WXGTK12__
#ifdef __WXGTK12__
if ( *pc == wxT('_') )
{
// underscores must be doubled to prevent them from being
@@ -907,7 +907,7 @@ void wxMenuItem::DoSetText( const wxString& str )
#if GTK_CHECK_VERSION(2, 0, 0)
else if ( *pc == wxT('_') ) // escape underscores
{
// m_text << wxT("__"); doesn't work
m_text << wxT("__");
}
else if (*pc == wxT('/')) // we have to escape slashes
{
@@ -1010,8 +1010,12 @@ wxString wxMenuItem::GetFactoryPath() const
{
if ( *pc == wxT('_') )
{
#ifdef __WXGTK20__
pc++;
#else
// remove '_' unconditionally
continue;
#endif
}
// don't remove ampersands '&' since if we have them in the menu item title