From da0315e4d666cc7cbfcfe7dab63d731df2a02338 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 23 Feb 2010 22:10:30 +0000 Subject: [PATCH] box: Revert "Tweak the depth sorting function" This reverts commit 939e56e2b12e5c96fa1173be33c2786ddfe57c25. Changing the depth sort function to have inconsistent behaviour for nodes that compare equal breaks the stability of g_list_sort. It ends up so that every time clutter_container_sort_depth_order is called the order of all actors with the same depth is reversed. http://bugzilla.openedhand.com/show_bug.cgi?id=1988 --- clutter/clutter-box.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-box.c b/clutter/clutter-box.c index 9461aca..2667adb 100644 --- a/clutter/clutter-box.c +++ b/clutter/clutter-box.c @@ -119,7 +119,7 @@ sort_by_depth (gconstpointer a, if (depth_a < depth_b) return -1; - if (depth_a >= depth_b) + if (depth_a > depth_b) return 1; return 0; -- 2.7.4