summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-utils.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pango/pango-utils.c b/pango/pango-utils.c
index c30c88d3..586f15ee 100644
--- a/pango/pango-utils.c
+++ b/pango/pango-utils.c
@@ -87,7 +87,7 @@ pango_trim_string (const char *str)
/**
* pango_split_file_list:
- * @str: a comma separated list of filenames
+ * @str: a G_SEARCHPATH_SEPARATOR separated list of filenames
*
* Splits a G_SEARCHPATH_SEPARATOR-separated list of files, stripping
* white space and subsituting ~/ with $HOME/.
@@ -133,6 +133,11 @@ pango_split_file_list (const char *str)
g_free (file);
file = tmp;
}
+ else if (file[0] == '~' && file[1] == '\0')
+ {
+ g_free (file);
+ file = g_strdup (g_get_home_dir());
+ }
#endif
g_free (files[i]);
files[i] = file;