summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward.hervey@collabora.co.uk>2011-02-09 11:21:02 +0100
committerEdward Hervey <edward.hervey@collabora.co.uk>2011-02-09 11:21:02 +0100
commit762c447936762988b1d87e380cb93ad0681a7d47 (patch)
tree8279516bdab1fd92aaa9fbc0d3cd0716be610f3a
parent857142a15d3a351ee4a0d621a55bd812ee26576c (diff)
TimelineObject: Store GParamSpec for height and layer
-rw-r--r--ges/ges-timeline-object.c19
1 files 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;
}