box: Revert "Tweak the depth sorting function"

This reverts commit 939e56e2b1.

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
This commit is contained in:
Neil Roberts 2010-02-23 22:10:30 +00:00 committed by Emmanuele Bassi
parent 1c65f2ee1e
commit da0315e4d6

View File

@ -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;