summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-view-identifier.c
diff options
context:
space:
mode:
authorMaciej Stachowiak <mstachow@src.gnome.org>2000-06-09 01:59:43 +0000
committerMaciej Stachowiak <mstachow@src.gnome.org>2000-06-09 01:59:43 +0000
commit2b5c47669ab40739403125969410a46b60076458 (patch)
tree474bca48486d45499b844ad4fa41f65e88c96edb /libnautilus-private/nautilus-view-identifier.c
parent0784d73f10868d3a1ee9dc955f45d7720f7032d0 (diff)
downloadnautilus-2b5c47669ab40739403125969410a46b60076458.tar.gz
New function to use when searching view identifier lists.
* libnautilus-extensions/nautilus-view-identifier.h, libnautilus-extensions/nautilus-view-identifier.c (nautilus_view_identifier_compare): New function to use when searching view identifier lists. * src/nautilus-applicable-views.c (got_file_info_callback): Merge the default view into the menu.
Diffstat (limited to 'libnautilus-private/nautilus-view-identifier.c')
-rw-r--r--libnautilus-private/nautilus-view-identifier.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-view-identifier.c b/libnautilus-private/nautilus-view-identifier.c
index 20d4c3fd0..940252d75 100644
--- a/libnautilus-private/nautilus-view-identifier.c
+++ b/libnautilus-private/nautilus-view-identifier.c
@@ -162,3 +162,8 @@ nautilus_view_identifier_list_free (GList *identifiers)
NULL);
}
+int
+nautilus_view_identifier_compare (NautilusViewIdentifier *a, NautilusViewIdentifier *b)
+{
+ return (strcmp (a->iid, b->iid) || strcmp (a->name, b->name));
+}