diff --git a/ChangeLog b/ChangeLog index e6b6e493fb..e297553480 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-11-24 Edward Hervey + + * gst/gst.override: + Ignore all *_full functions/methods + * gst/gstbus.override: + Wrapper for gst_bus_add_signal_watch that now takes an optional + priority argument + 2005-11-23 Thomas Vander Stichele * configure.ac: back to HEAD diff --git a/gst/gst.override b/gst/gst.override index 860f916bfa..91e2f9cab1 100644 --- a/gst/gst.override +++ b/gst/gst.override @@ -296,6 +296,7 @@ ignore-glob *_unref *_init *_deinit + *_full gst_class_* gst_init* gst_interface_* diff --git a/gst/gstbus.override b/gst/gstbus.override index 4ab6e967a2..71ea14fc27 100644 --- a/gst/gstbus.override +++ b/gst/gstbus.override @@ -211,3 +211,19 @@ _wrap_gst_bus_add_watch (PyGObject *self, PyObject *args) return PyInt_FromLong(sigid); } +%% +override gst_bus_add_signal_watch kwargs +static PyObject * +_wrap_gst_bus_add_signal_watch(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "priority", NULL }; + int priority = G_PRIORITY_DEFAULT; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|i:GstBus.add_signal_watch", kwlist, &priority)) + return NULL; + pyg_begin_allow_threads; + gst_bus_add_signal_watch_full(GST_BUS(self->obj), priority); + pyg_end_allow_threads; + Py_INCREF(Py_None); + return Py_None; +}