Bug 543183 – Clarify docs for g_file_has_prefix
authorAlexander Larsson <alexl@redhat.com>
Thu, 26 Feb 2009 15:03:11 +0000 (15:03 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Thu, 26 Feb 2009 15:03:11 +0000 (15:03 +0000)
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

gio/ChangeLog
gio/gfile.c

index 7f31e13c27c46e247199cd5e1ac914b1b71604d8..9baa476b1b20cbb9dad1b4da776f196f51593d20 100644 (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:
index 75c75ed3b43dc2f7c6411e4cc9b93f3211b949bb..11a676c585c0c83c4fd220f4ecf209db943a1392 100644 (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