diff options
author | James Henstridge <james@daa.com.au> | 2000-11-08 15:37:46 +0000 |
---|---|---|
committer | James Henstridge <jamesh@src.gnome.org> | 2000-11-08 15:37:46 +0000 |
commit | 3bb84f9f11b80b2fe50a1a7496df929d04fc5d3d (patch) | |
tree | b0490b715e4419cd2d5c7a494d559c6af565d8e1 | |
parent | a13b2b30686aa2cc56fe6631e46b3c2ff6e371ac (diff) | |
download | pygobject-3bb84f9f11b80b2fe50a1a7496df929d04fc5d3d.tar.gz |
add a special case for converting GObject -> G_OBJECT.
2000-11-08 James Henstridge <james@daa.com.au>
* codegen/argtypes.py (_conv_special_cases): add a special case
for converting GObject -> G_OBJECT.
* gobjectmodule.c (pygobject_connect*): g_signal_connect_closure
renaming.
* codegen/argtypes.py (arg): add GtkTreeIter support.
* gtk/gtk-types.c, gtk/pygtk.h, gtk/pygtk-private.h: add a
skeleton for the GtkTreeIter wrapper.
-rw-r--r-- | gobject/gobjectmodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index 1b2d7e6d..9790a9a5 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -778,7 +778,7 @@ pygobject_connect(PyGObject *self, PyObject *args) extra_args = PySequence_GetSlice(args, 2, len); if (extra_args == NULL) return NULL; - handlerid = g_signal_connect_closure(self->obj, sigid, 0, + handlerid = g_signal_connect_closure_by_id(self->obj, sigid, 0, pyg_closure_new(callback, extra_args, NULL), FALSE); return PyInt_FromLong(handlerid); } @@ -815,7 +815,7 @@ pygobject_connect_after(PyGObject *self, PyObject *args) extra_args = PySequence_GetSlice(args, 2, len); if (extra_args == NULL) return NULL; - handlerid = g_signal_connect_closure(self->obj, sigid, 0, + handlerid = g_signal_connect_closure_by_id(self->obj, sigid, 0, pyg_closure_new(callback, extra_args, NULL), TRUE); return PyInt_FromLong(handlerid); } @@ -852,7 +852,7 @@ pygobject_connect_object(PyGObject *self, PyObject *args) extra_args = PySequence_GetSlice(args, 3, len); if (extra_args == NULL) return NULL; - handlerid = g_signal_connect_closure(self->obj, sigid, 0, + handlerid = g_signal_connect_closure_by_id(self->obj, sigid, 0, pyg_closure_new(callback, extra_args, object), FALSE); return PyInt_FromLong(handlerid); } @@ -889,7 +889,7 @@ pygobject_connect_object_after(PyGObject *self, PyObject *args) extra_args = PySequence_GetSlice(args, 3, len); if (extra_args == NULL) return NULL; - handlerid = g_signal_connect_closure(self->obj, sigid, 0, + handlerid = g_signal_connect_closure_by_id(self->obj, sigid, 0, pyg_closure_new(callback, extra_args, object), TRUE); return PyInt_FromLong(handlerid); } |