From 762c447936762988b1d87e380cb93ad0681a7d47 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 9 Feb 2011 11:21:02 +0100 Subject: TimelineObject: Store GParamSpec for height and layer --- ges/ges-timeline-object.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/ges/ges-timeline-object.c b/ges/ges-timeline-object.c index eb694f25..7d017e96 100644 --- a/ges/ges-timeline-object.c +++ b/ges/ges-timeline-object.c @@ -226,21 +226,22 @@ ges_timeline_object_class_init (GESTimelineObjectClass * klass) * * The span of layer priorities which this object occupies. */ - + properties[PROP_HEIGHT] = g_param_spec_uint ("height", "Height", + "The span of priorities this object occupies", 0, G_MAXUINT, 1, + G_PARAM_READABLE); g_object_class_install_property (object_class, PROP_HEIGHT, - g_param_spec_uint ("height", "Height", - "The span of priorities this object occupies", 0, G_MAXUINT, 1, - G_PARAM_READABLE)); + properties[PROP_HEIGHT]); - /* GESSimpleTimelineLayer:layer + /** + * GESTimelineObject:layer * * The GESTimelineLayer where this object is being used. */ - + properties[PROP_LAYER] = g_param_spec_object ("layer", "Layer", + "The GESTimelineLayer where this object is being used.", + GES_TYPE_TIMELINE_LAYER, G_PARAM_READABLE); g_object_class_install_property (object_class, PROP_LAYER, - g_param_spec_object ("layer", "Layer", - "The GESTimelineLayer where this object is being used.", - GES_TYPE_TIMELINE_LAYER, G_PARAM_READABLE)); + properties[PROP_LAYER]); klass->need_fill_track = TRUE; } -- cgit v1.2.3