From 1ab68f9ee988ecfd9825c250ff8524118bc206c6 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 26 Feb 2009 15:03:11 +0000 Subject: [PATCH] =?utf8?q?Bug=20543183=20=E2=80=93=20Clarify=20docs=20for?= =?utf8?q?=20g=5Ffile=5Fhas=5Fprefix?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- gio/ChangeLog | 7 +++++++ gio/gfile.c | 2 ++ 2 files changed, 9 insertions(+) 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 -- 2.34.1