diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | gobject/pygobject.c | 11 |
2 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2007-07-07 Gustavo J. A. M. Carneiro <gjc@gnome.org> + + * gobject/pygobject.c (pygobject_run_dispose): + Bug 398696 – Wrap g_object_run_dispose. + 2007-04-30 Johannes Hölzl <johannes.hoelzl@gmx.de> * gobject/gobjectmodule.c (init_gobjectmodule), diff --git a/gobject/pygobject.c b/gobject/pygobject.c index fb3fb1d..1248474 100644 --- a/gobject/pygobject.c +++ b/gobject/pygobject.c @@ -1959,6 +1959,16 @@ pygobject_handler_unblock_by_func(PyGObject *self, PyObject *args) return PyInt_FromLong(retval); } + +static PyObject * +pygobject_run_dispose(PyGObject *self, PyObject *args) +{ + CHECK_GOBJECT(self); + g_object_run_dispose(self->obj); + Py_INCREF(Py_None); + return Py_None; +} + static PyMethodDef pygobject_methods[] = { { "__gobject_init__", (PyCFunction)pygobject__gobject_init__, METH_VARARGS|METH_KEYWORDS }, @@ -1988,6 +1998,7 @@ static PyMethodDef pygobject_methods[] = { { "emit_stop_by_name", (PyCFunction)pygobject_stop_emission,METH_VARARGS }, { "chain", (PyCFunction)pygobject_chain_from_overridden,METH_VARARGS }, { "weak_ref", (PyCFunction)pygobject_weak_ref, METH_VARARGS }, + { "run_dispose", (PyCFunction)pygobject_run_dispose, METH_NOARGS }, { NULL, NULL, 0 } }; |
