From d8cd546812ec1d56cfe218133c0b5ee7d8d75e0b Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 25 Feb 2008 13:24:56 +0000 Subject: [PATCH] Reintroduce g_file_contains_file, keep around for one unstable release 2008-02-25 Alexander Larsson * 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 | 7 +++++++ gio/gfile.c | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/gio/ChangeLog b/gio/ChangeLog index 1c9b161..75e7759 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,5 +1,12 @@ 2008-02-25 Alexander Larsson + * 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 + * gfile.[ch]: Remove deprecated g_file_contains_file. diff --git a/gio/gfile.c b/gio/gfile.c index 721da5e..e2a7cdb 100644 --- a/gio/gfile.c +++ b/gio/gfile.c @@ -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. -- 2.7.4