summaryrefslogtreecommitdiffstats
path: root/gobject
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-07-07 13:40:05 +0000
committerGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-07-07 13:40:05 +0000
commit8baae675ebe3a6246fae470879bd263e96580648 (patch)
tree3112fa8a96dfbc61b83136ffa151f240f808c010 /gobject
parentfa662a93ec67e0a6591cb5e079fcd9d26d2c1385 (diff)
downloadpygobject-8baae675ebe3a6246fae470879bd263e96580648.tar.gz
pygobject-8baae675ebe3a6246fae470879bd263e96580648.tar.xz
pygobject-8baae675ebe3a6246fae470879bd263e96580648.zip
Bug 398696 – Wrap g_object_run_dispose
svn path=/trunk/; revision=683
Diffstat (limited to 'gobject')
-rw-r--r--gobject/pygobject.c11
1 files changed, 11 insertions, 0 deletions
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 }
};