ges/ges-timeline-transition.{c,h}: add a type field

This commit is contained in:
Brandon Lewis 2010-05-26 16:33:44 +02:00 committed by Edward Hervey
parent a9b47a1a71
commit 48eeb8d913
2 changed files with 10 additions and 4 deletions

View file

@ -83,6 +83,7 @@ ges_timeline_transition_class_init (GESTimelineTransitionClass * klass)
static void
ges_timeline_transition_init (GESTimelineTransition * self)
{
self->vtype = NULL;
}
static GESTrackObject *
@ -94,13 +95,17 @@ ges_tl_transition_create_track_object (GESTimelineObject * obj,
GST_DEBUG ("Creating a GESTrackTransition");
res = GES_TRACK_OBJECT (ges_track_transition_new ());
res = GES_TRACK_OBJECT (ges_track_transition_new (transition->vtype));
return res;
}
GESTimelineTransition *
ges_timeline_transition_new (void)
ges_timeline_transition_new (GEnumValue * vtype)
{
return g_object_new (GES_TYPE_TIMELINE_TRANSITION, NULL);
GESTimelineTransition *ret = g_object_new
(GES_TYPE_TIMELINE_TRANSITION, NULL);
ret->vtype = vtype;
return ret;
}

View file

@ -45,6 +45,7 @@ G_BEGIN_DECLS
struct _GESTimelineTransition {
GESTimelineObject parent;
GEnumValue *vtype;
};
struct _GESTimelineTransitionClass {
@ -53,7 +54,7 @@ struct _GESTimelineTransitionClass {
GType ges_timeline_transition_get_type (void);
GESTimelineTransition* ges_timeline_transition_new (void);
GESTimelineTransition *ges_timeline_transition_new (GEnumValue * vtype);
G_END_DECLS