summaryrefslogtreecommitdiff
path: root/gobject
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gjc@src.gnome.org>2005-09-02 15:12:25 +0000
committerGustavo J. A. M. Carneiro <gjc@src.gnome.org>2005-09-02 15:12:25 +0000
commit1ef98e2f5d4f8e87f5ae25db93697a26e0c59fe4 (patch)
tree7881f5fccc0c5ffec031b02e485cbb520245cee8 /gobject
parent72a6b606f7c6c1ed26a8c28c9e4d6dad1ce056bb (diff)
downloadpygobject-1ef98e2f5d4f8e87f5ae25db93697a26e0c59fe4.tar.gz
[Bug 315100] gobject.type_register if parameter is not a type
Diffstat (limited to 'gobject')
-rw-r--r--gobject/gobjectmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index c43d368b..cd08c342 100644
--- a/gobject/gobjectmodule.c
+++ b/gobject/gobjectmodule.c
@@ -975,7 +975,7 @@ _wrap_pyg_type_register(PyObject *self, PyObject *args)
{
PyTypeObject *class;
- if (!PyArg_ParseTuple(args, "O:gobject.type_register", &class))
+ if (!PyArg_ParseTuple(args, "O!:gobject.type_register", &PyType_Type, &class))
return NULL;
if (!PyType_IsSubtype(class, &PyGObject_Type)) {
PyErr_SetString(PyExc_TypeError,"argument must be a GObject subclass");