summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2003-09-01 05:11:17 +0000
committerManish Singh <yosh@gimp.org>2003-09-01 05:11:17 +0000
commit3ef32bcdc4662fbc10bc5217ea7849cd31480d73 (patch)
treef50fd6db6a7087b80a1ce07d3602be61e2339af0
parent34cd0514a215d65af6822eba2c2f0cd04eb0065f (diff)
FcConfigAppFontClear: Support passing NULL to use default config.
-rw-r--r--ChangeLog5
-rw-r--r--src/fccfg.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d265c74..79ca94a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-31 Manish Singh <yosh@gimp.org>
+
+ * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
+ use default config.
+
2003-08-15 Carl Worth <cworth@isi.edu>
* src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
diff --git a/src/fccfg.c b/src/fccfg.c
index 12cad84..f393c79 100644
--- a/src/fccfg.c
+++ b/src/fccfg.c
@@ -1727,6 +1727,13 @@ FcConfigAppFontAddDir (FcConfig *config,
void
FcConfigAppFontClear (FcConfig *config)
{
+ if (!config)
+ {
+ config = FcConfigGetCurrent ();
+ if (!config)
+ return;
+ }
+
FcConfigSetFonts (config, 0, FcSetApplication);
}