CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
LIBS="$LIBS $wx_cv_libs_gtk"
- AC_CHECK_FUNCS([pango_font_family_is_monospace])
-
dnl gtk_icon_size_lookup is not available in the GTK+ headers
dnl that have shipped with some versions of Sun's JDS. Not using
dnl AC_CHECK_FUNCS here since it only checks the function exists
bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
bool fixedWidthOnly)
{
-#ifndef HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE
- if ( fixedWidthOnly )
- {
+#if defined(__WXGTK20__) || !defined(HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE)
+ if ( fixedWidthOnly
+#if defined(__WXGTK24__)
+ && (gtk_check_version(2,4,0) != NULL)
+#endif
+ )
+{
OnFacename( wxT("monospace") );
}
else
for (int i=0; i<n_families; i++)
{
-#ifdef HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE
- if (!fixedWidthOnly ||
- pango_font_family_is_monospace(families[i]))
+#if defined(__WXGTK24__) || defined(HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE)
+ if (!fixedWidthOnly || (
+#ifdef __WXGTK24__
+ !gtk_check_version(2,4,0) &&
+#endif
+ pango_font_family_is_monospace(families[i])
+ ) )
#endif
{
const gchar *name = pango_font_family_get_name(families[i]);
}
g_free(families);
}
-
+
return TRUE;
}