From: Neil Roberts Date: Tue, 23 Feb 2010 22:10:30 +0000 (+0000) Subject: box: Revert "Tweak the depth sorting function" X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da0315e4d666cc7cbfcfe7dab63d731df2a02338;p=profile%2Fivi%2Fclutter.git 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 --- 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;