From: Alexander Larsson Date: Thu, 26 Feb 2009 15:03:11 +0000 (+0000) Subject: Bug 543183 – Clarify docs for g_file_has_prefix X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=1ab68f9ee988ecfd9825c250ff8524118bc206c6;p=dana%2Fcg-glib.git Bug 543183 – Clarify docs for g_file_has_prefix 2009-02-26 Alexander Larsson Bug 543183 – Clarify docs for g_file_has_prefix * gfile.c: (g_file_has_prefix): Clarify how the prefix matching works. svn path=/trunk/; revision=7915 --- diff --git a/gio/ChangeLog b/gio/ChangeLog index 7f31e13c..9baa476b 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,10 @@ +2009-02-26 Alexander Larsson + + Bug 543183 – Clarify docs for g_file_has_prefix + + * gfile.c: (g_file_has_prefix): + Clarify how the prefix matching works. + 2009-02-26 Alexander Larsson * gdesktopappinfo.c: diff --git a/gio/gfile.c b/gio/gfile.c index 75c75ed3..11a676c5 100644 --- a/gio/gfile.c +++ b/gio/gfile.c @@ -685,6 +685,8 @@ g_file_get_child_for_display_name (GFile *file, * * Checks whether @file has the prefix specified by @prefix. In other word, * if the names of inital elements of @files pathname match @prefix. + * Only full pathname elements are matched, so a path like /foo is not + * considered a prefix of /foobar, only of /foo/bar. * * This call does no i/o, as it works purely on names. As such it can * sometimes return %FALSE even if @file is inside a @prefix (from a