diff options
| author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2006-05-28 13:50:05 +0000 |
|---|---|---|
| committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2006-05-28 13:50:05 +0000 |
| commit | e6ef557a9ba22f8b8afb0e772c206589dbbb0b9a (patch) | |
| tree | 03460d07784d97ed236a3882bdb22b0c38e07611 /gobject/gobjectmodule.c | |
| parent | 79df3f5f4b6113d07ab40522f30c83f2fab17410 (diff) | |
| download | pygobject-e6ef557a9ba22f8b8afb0e772c206589dbbb0b9a.tar.gz pygobject-e6ef557a9ba22f8b8afb0e772c206589dbbb0b9a.tar.xz pygobject-e6ef557a9ba22f8b8afb0e772c206589dbbb0b9a.zip | |
gobject.new fix for 'subsubtype' case
Diffstat (limited to 'gobject/gobjectmodule.c')
| -rw-r--r-- | gobject/gobjectmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index 914a644..cd0532e 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -1184,7 +1184,7 @@ pygobject__g_instance_init(GTypeInstance *instance, * now */ PyGILState_STATE state; state = pyg_gil_state_ensure(); - wrapper = pygobject_new_full(object, FALSE); + wrapper = pygobject_new_full(object, FALSE, g_class); args = PyTuple_New(0); kwargs = PyDict_New(); if (wrapper->ob_type->tp_init(wrapper, args, kwargs)) @@ -1751,7 +1751,7 @@ pyg_object_new (PyGObject *self, PyObject *args, PyObject *kwargs) obj = g_object_newv(type, n_params, params); if (!obj) PyErr_SetString (PyExc_RuntimeError, "could not create object"); - + cleanup: for (i = 0; i < n_params; i++) { g_free((gchar *) params[i].name); @@ -1761,7 +1761,7 @@ pyg_object_new (PyGObject *self, PyObject *args, PyObject *kwargs) g_type_class_unref(class); if (obj) { - self = (PyGObject *) pygobject_new_full((GObject *)obj, FALSE); + self = (PyGObject *) pygobject_new_full((GObject *)obj, FALSE, NULL); g_object_unref(obj); pygobject_sink(obj); } else |
