Reintroduce g_file_contains_file, keep around for one unstable release
authorAlexander Larsson <alexl@redhat.com>
Mon, 25 Feb 2008 13:24:56 +0000 (13:24 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Mon, 25 Feb 2008 13:24:56 +0000 (13:24 +0000)
2008-02-25  Alexander Larsson  <alexl@redhat.com>

        * gfile.c:
        Reintroduce g_file_contains_file, keep around for one
unstable release cycle to avoid crashing to many apps.
Make sure to delete after release.

svn path=/trunk/; revision=6586

gio/ChangeLog
gio/gfile.c

index 1c9b161490af52b6ff929aeb85eed3cd7f440742..75e7759adacd26fdeb27b41f81f524d7a3d3f37c 100644 (file)
@@ -1,3 +1,10 @@
+2008-02-25  Alexander Larsson  <alexl@redhat.com>
+
+        * gfile.c:     
+        Reintroduce g_file_contains_file, keep around for one
+       unstable release cycle to avoid crashing to many apps.
+       Make sure to delete after release.
+
 2008-02-25  Alexander Larsson  <alexl@redhat.com>
 
         * gfile.[ch]:
index 721da5e475062557b8a379eecd0dce41279d819f..e2a7cdb18d0247c7c178350f7e878c0d90a9dd4b 100644 (file)
@@ -669,6 +669,16 @@ g_file_get_child_for_display_name (GFile      *file,
   return (* iface->get_child_for_display_name) (file, display_name, error);
 }
 
+/* Temporary keep this symbol for one release */
+gboolean g_file_contains_file (GFile *parent, GFile *descendant);
+gboolean
+g_file_contains_file (GFile *parent,
+                     GFile *descendant)
+{
+  /* This function is not in the header and will not be referenced by newly built code */
+  return g_file_has_prefix (descendant, parent);
+}
+
 /**
  * g_file_has_prefix:
  * @file: input #GFile.