summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2000-11-08 15:37:46 +0000
committerJames Henstridge <jamesh@src.gnome.org>2000-11-08 15:37:46 +0000
commit3bb84f9f11b80b2fe50a1a7496df929d04fc5d3d (patch)
treeb0490b715e4419cd2d5c7a494d559c6af565d8e1
parenta13b2b30686aa2cc56fe6631e46b3c2ff6e371ac (diff)
downloadpygobject-3bb84f9f11b80b2fe50a1a7496df929d04fc5d3d.tar.gz
pygobject-3bb84f9f11b80b2fe50a1a7496df929d04fc5d3d.tar.xz
pygobject-3bb84f9f11b80b2fe50a1a7496df929d04fc5d3d.zip
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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index 1b2d7e6..9790a9a 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);
}