Bug 543183 – Clarify docs for g_file_has_prefix

2009-02-26  Alexander Larsson  <alexl@redhat.com>

	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
This commit is contained in:
Alexander Larsson 2009-02-26 15:03:11 +00:00 committed by Alexander Larsson
parent fa558d00c3
commit 1ab68f9ee9
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2009-02-26 Alexander Larsson <alexl@redhat.com>
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 <alexl@redhat.com>
* gdesktopappinfo.c:

View File

@ -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 @file<!-- -->s 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