From 939e56e2b12e5c96fa1173be33c2786ddfe57c25 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 23 Feb 2010 17:59:09 +0000 Subject: [PATCH] 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 --- 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 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; -- 2.7.4