doc: improve doc of g_file_equal()
authorSébastien Wilmet <swilmet@gnome.org>
Fri, 27 Jun 2014 18:43:39 +0000 (20:43 +0200)
committerSébastien Wilmet <swilmet@gnome.org>
Sun, 29 Jun 2014 15:57:24 +0000 (17:57 +0200)
A critical message is printed when a parameter of g_file_equal() is not
a GFile. When we read the documentation before this commit, we can think
that passing NULL or another type than GFile is allowed, but it is not
the case.

Another option is to allow NULL parameters. But for consistency with
e.g. g_str_equal(), it's probably better to keep the code as is.

https://bugzilla.gnome.org/show_bug.cgi?id=732357

gio/gfile.c

index 3e9123f..9cf3f4d 100644 (file)
@@ -650,7 +650,6 @@ g_file_hash (gconstpointer file)
  * This call does no blocking I/O.
  *
  * Returns: %TRUE if @file1 and @file2 are equal.
- *     %FALSE if either is not a #GFile.
  */
 gboolean
 g_file_equal (GFile *file1,