From: Emmanuele Bassi Date: Tue, 23 Feb 2010 17:59:09 +0000 (+0000) Subject: box: Tweak the depth sorting function X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=939e56e2b12e5c96fa1173be33c2786ddfe57c25;p=profile%2Fivi%2Fclutter.git box: Tweak the depth sorting function By changing the depth sorting function we can achieve the same effect as ClutterGroup but without the costly append+sort. http://bugzilla.openedhand.com/show_bug.cgi?id=1988 --- diff --git a/clutter/clutter-box.c b/clutter/clutter-box.c index 2667adb..9461aca 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;