[nautilus] bookmark: compare URIs before names
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] bookmark: compare URIs before names
- Date: Mon, 10 Jan 2011 09:42:38 +0000 (UTC)
commit b12aeed547664d44b0b552db06a5ec7b6d9b200b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Jan 10 10:40:44 2011 +0100
bookmark: compare URIs before names
libnautilus-private/nautilus-bookmark.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libnautilus-private/nautilus-bookmark.c b/libnautilus-private/nautilus-bookmark.c
index 36dba9f..c86f9eb 100644
--- a/libnautilus-private/nautilus-bookmark.c
+++ b/libnautilus-private/nautilus-bookmark.c
@@ -142,16 +142,16 @@ nautilus_bookmark_compare_with (gconstpointer a, gconstpointer b)
bookmark_a = NAUTILUS_BOOKMARK (a);
bookmark_b = NAUTILUS_BOOKMARK (b);
- if (eel_strcmp (bookmark_a->details->name,
- bookmark_b->details->name) != 0) {
- return 1;
- }
-
if (!g_file_equal (bookmark_a->details->location,
bookmark_b->details->location)) {
return 1;
}
+ if (eel_strcmp (bookmark_a->details->name,
+ bookmark_b->details->name) != 0) {
+ return 1;
+ }
+
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]