From acf8c258ef62277c4fc4860ce624ada1d392a55d Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 2 Jun 2011 21:35:59 -0400 Subject: [PATCH] ges: Define a LAYER_HEIGHT constant in the normal layer --- ges/ges-timeline-layer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ges/ges-timeline-layer.c b/ges/ges-timeline-layer.c index 3cc057f139..003eb3b49e 100644 --- a/ges/ges-timeline-layer.c +++ b/ges/ges-timeline-layer.c @@ -33,6 +33,8 @@ #include "ges-timeline-layer.h" #include "ges.h" +#define LAYER_HEIGHT 10 + G_DEFINE_TYPE (GESTimelineLayer, ges_timeline_layer, G_TYPE_INITIALLY_UNOWNED); struct _GESTimelineLayerPrivate @@ -361,8 +363,8 @@ ges_timeline_layer_set_priority (GESTimelineLayer * layer, guint priority) if (priority != layer->priv->priority) { layer->priv->priority = priority; - layer->min_gnl_priority = (priority * 10); - layer->max_gnl_priority = ((priority + 1) * 10) - 1; + layer->min_gnl_priority = (priority * LAYER_HEIGHT); + layer->max_gnl_priority = ((priority + 1) * LAYER_HEIGHT) - 1; /* FIXME : Update controlled object's gnl priority accordingly */ ges_timeline_layer_resync_priorities (layer); -- 2.34.1