pyges : Override ges_timeline_parse_launch_effect_new to make it accept None
authorMathieu Duponchelle <seeed@laposte.net>
Sat, 14 May 2011 02:32:45 +0000 (04:32 +0200)
committerThibault Saunier <thibault.saunier@collabora.com>
Thu, 11 Aug 2011 12:40:08 +0000 (14:40 +0200)
bindings/python/ges.override

index 624689e..ce26c9c 100644 (file)
@@ -70,6 +70,26 @@ _wrap_ges_timeline_get_tracks(PyGObject *self)
 }
 
 %%
+override ges_timeline_parse_launch_effect_new kwargs
+static int
+_wrap_ges_timeline_parse_launch_effect_new(PyGObject *self, PyObject *args, PyObject *kwargs)
+{
+    static char *kwlist[] = { "video_bin_description", "audio_bin_description", NULL };
+    char *video_bin_description, *audio_bin_description = NULL;
+
+    if (!PyArg_ParseTupleAndKeywords(args, kwargs,"zz:GES.TimelineParseLaunchEffect.__init__", kwlist, &video_bin_description, &audio_bin_description))
+        return -1;
+    self->obj = (GObject *)ges_timeline_parse_launch_effect_new(video_bin_description, audio_bin_description);
+
+    if (!self->obj) {
+        PyErr_SetString(PyExc_RuntimeError, "could not create GESTimelineParseLaunchEffect object");
+        return -1;
+    }
+    pygobject_register_wrapper((PyObject *)self);
+    return 0;
+}
+
+%%
 override ges_timeline_get_layers noargs
 static PyObject *
 _wrap_ges_timeline_get_layers(PyGObject *self)