Guard the FC_HINT_STYLE stuff with an #ifdef, so we still build with most
Sat Feb 21 19:09:55 2004 Manish Singh <yosh@gimp.org> * gtk/gtksettings.c (gtk_default_substitute): Guard the FC_HINT_STYLE stuff with an #ifdef, so we still build with most fontconfig versions. * configure.in: Bump the fontconfig version requirement down to 1.0.1, to match pango (probably isn't needed at all, but doesn't hurt).
This commit is contained in:
committed by
Manish Singh
parent
4c471cb7d1
commit
6d1bd9e1e9
@ -153,7 +153,8 @@ gtk_default_substitute (FcPattern *pattern,
|
||||
if (hinting >= 0 &&
|
||||
FcPatternGet (pattern, FC_HINTING, 0, &v) == FcResultNoMatch)
|
||||
FcPatternAddBool (pattern, FC_HINTING, hinting != 0);
|
||||
|
||||
|
||||
#ifdef FC_HINT_STYLE
|
||||
if (hintstyle && FcPatternGet (pattern, FC_HINT_STYLE, 0, &v) == FcResultNoMatch)
|
||||
{
|
||||
int val = FC_HINT_FULL; /* Quiet GCC */
|
||||
@ -173,6 +174,7 @@ gtk_default_substitute (FcPattern *pattern,
|
||||
if (found)
|
||||
FcPatternAddInteger (pattern, FC_HINT_STYLE, val);
|
||||
}
|
||||
#endif /* FC_HINT_STYLE */
|
||||
|
||||
if (rgba && FcPatternGet (pattern, FC_RGBA, 0, &v) == FcResultNoMatch)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user