ges/ges-track-transition.{c,h}: api change: pass gint instead of GEnumValue

This commit is contained in:
Brandon Lewis 2010-06-02 16:27:58 +02:00 committed by Edward Hervey
parent b3ec2bad19
commit 3caed9bff4
2 changed files with 3 additions and 4 deletions

View file

@ -438,11 +438,10 @@ ges_track_transition_init (GESTrackTransition * self)
} }
GESTrackTransition * GESTrackTransition *
ges_track_transition_new (GEnumValue * type) ges_track_transition_new (gint value)
{ {
GESTrackTransition *ret = g_object_new (GES_TYPE_TRACK_TRANSITION, NULL); GESTrackTransition *ret = g_object_new (GES_TYPE_TRACK_TRANSITION, NULL);
if (type) ret->vtype = value;
ret->vtype = type->value;
return ret; return ret;
} }

View file

@ -99,7 +99,7 @@ struct _GESTrackTransitionClass {
GType ges_track_transition_get_type (void); GType ges_track_transition_get_type (void);
GESTrackTransition *ges_track_transition_new (GEnumValue *type); GESTrackTransition *ges_track_transition_new (gint value);
G_END_DECLS G_END_DECLS