removed all compile- and run-time checks for GTK+ < 2.4; don't include the generic files which are now never used in wxGTK in the build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -158,9 +158,9 @@ wxFontFamily wxNativeFontInfo::GetFamily() const
|
||||
ret = wxFONTFAMILY_TELETYPE; // begins with "Monospace"
|
||||
else if (strncmp( family_text, "courier", 7 ) == 0)
|
||||
ret = wxFONTFAMILY_TELETYPE; // begins with "Courier"
|
||||
#if defined(__WXGTK24__) || defined(HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE)
|
||||
#if defined(__WXGTK20__) || defined(HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE)
|
||||
else
|
||||
#ifdef __WXGTK24__
|
||||
#ifdef __WXGTK20__
|
||||
if (!gtk_check_version(2,4,0))
|
||||
#endif
|
||||
{
|
||||
@@ -196,7 +196,7 @@ wxFontFamily wxNativeFontInfo::GetFamily() const
|
||||
if (family != NULL && pango_font_family_is_monospace( family ))
|
||||
ret = wxFONTFAMILY_TELETYPE; // is deemed a monospace font by pango
|
||||
}
|
||||
#endif // gtk24 || HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE
|
||||
#endif // GTK+ 2 || HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE
|
||||
|
||||
if (ret == wxFONTFAMILY_DEFAULT)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user