mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 08:23:38 +02:00
Add new g_file_has_prefix that does the same as g_file_contains_file.
2008-02-21 Alexander Larsson <alexl@redhat.com> * gfile.[ch]: * gio.symbols: Add new g_file_has_prefix that does the same as g_file_contains_file. Deprecate g_file_contains_file and add a macro that converts it to g_file_has_prefix. The reason for this change is that the contains_file() name seems to imply that this does more work than what it does, but its really only a name match (from #517086) * gdummyfile.c: * glocalfile.c: * tests/g-file.c: Update to match the above change. svn path=/trunk/; revision=6546
This commit is contained in:
committed by
Alexander Larsson
parent
03c51e95a7
commit
6dc9b7ee00
@@ -519,8 +519,8 @@ match_prefix (const char *path,
|
||||
}
|
||||
|
||||
static gboolean
|
||||
g_local_file_contains_file (GFile *parent,
|
||||
GFile *descendant)
|
||||
g_local_file_prefix_matches (GFile *parent,
|
||||
GFile *descendant)
|
||||
{
|
||||
GLocalFile *parent_local = G_LOCAL_FILE (parent);
|
||||
GLocalFile *descendant_local = G_LOCAL_FILE (descendant);
|
||||
@@ -1977,7 +1977,7 @@ g_local_file_file_iface_init (GFileIface *iface)
|
||||
iface->get_uri = g_local_file_get_uri;
|
||||
iface->get_parse_name = g_local_file_get_parse_name;
|
||||
iface->get_parent = g_local_file_get_parent;
|
||||
iface->contains_file = g_local_file_contains_file;
|
||||
iface->prefix_matches = g_local_file_prefix_matches;
|
||||
iface->get_relative_path = g_local_file_get_relative_path;
|
||||
iface->resolve_relative_path = g_local_file_resolve_relative_path;
|
||||
iface->get_child_for_display_name = g_local_file_get_child_for_display_name;
|
||||
|
Reference in New Issue
Block a user