From 3b4003c57752d3d2d1386287c696f5a60d22aa1b Mon Sep 17 00:00:00 2001 From: James Henstridge Date: Wed, 28 Jun 2000 15:44:28 +0000 Subject: Added GObject.queue_param_changed method --- gobject/gobjectmodule.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index a61a60b..acdd1d5 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -533,6 +533,18 @@ pygobject_set_param(PyGObject *self, PyObject *args) return Py_None; } +static PyObject * +pygobject_queue_param_changed(PyGObject *self, PyObject *args) +{ + char *param_name; + + if (!PyArg_ParseTuple(args, "s:GObject.queue_param_changed", ¶m_name)) + return NULL; + g_object_queue_param_changed(self->obj, param_name); + Py_INCREF(Py_None); + return Py_None; +} + static PyObject * pygobject_get_data(PyGObject *self, PyObject *args) { @@ -570,6 +582,7 @@ static PyMethodDef pygobject_methods[] = { { "__init__", (PyCFunction)pygobject__init__, METH_VARARGS }, { "get_param", (PyCFunction)pygobject_get_param, METH_VARARGS }, { "set_param", (PyCFunction)pygobject_set_param, METH_VARARGS }, + { "queue_param_changed", (PyCFunction)pygobject_queue_param_changed, METH_VARARGS }, { "get_data", (PyCFunction)pygobject_get_data, METH_VARARGS }, { "set_data", (PyCFunction)pygobject_set_data, METH_VARARGS }, { NULL, NULL, 0 } -- cgit