From 4020ca54ff93a162d0093abdb4b2f3be91240675 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 25 Jun 2013 18:34:44 -0400 Subject: [PATCH] container: Fix the way we check priority of subclasses when grouping objects The resulting list was from lower to higher, we need the contrary --- ges/ges-container.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ges/ges-container.c b/ges/ges-container.c index 41a6506983..1f239b0536 100644 --- a/ges/ges-container.c +++ b/ges/ges-container.c @@ -129,12 +129,13 @@ compare_grouping_prio (GType * a, GType * b) GObjectClass *aclass = g_type_class_ref (*a); GObjectClass *bclass = g_type_class_ref (*b); + /* We want higher prios to be first */ if (GES_CONTAINER_CLASS (aclass)->grouping_priority < GES_CONTAINER_CLASS (bclass)->grouping_priority) - ret = -1; + ret = 1; else if (GES_CONTAINER_CLASS (aclass)->grouping_priority > GES_CONTAINER_CLASS (bclass)->grouping_priority) - ret = 1; + ret = -1; g_type_class_unref (aclass); g_type_class_unref (bclass);