From e12d3c3a1c33b2244cef1c3dfda62305d169079e Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 16 Jul 2007 20:43:13 +0000 Subject: [PATCH] Modified shelf id sort to be a bit more complete. This fixes the issue where shelves were missing from the Shelf Dialog list. SVN revision: 30862 --- src/bin/e_shelf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/e_shelf.c b/src/bin/e_shelf.c index 75a6d014a..7e21b2ab7 100644 --- a/src/bin/e_shelf.c +++ b/src/bin/e_shelf.c @@ -1193,7 +1193,9 @@ _e_shelf_cb_id_sort(void *data1, void *data2) es1 = data1; es2 = data2; - return (es1->id) > (es2->id); + if ((es1->id) < (es2->id)) return -1; + else if (es1->id > es2->id) return 1; + return 0; } static int