diff options
author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2005-09-02 15:12:25 +0000 |
---|---|---|
committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2005-09-02 15:12:25 +0000 |
commit | 1ef98e2f5d4f8e87f5ae25db93697a26e0c59fe4 (patch) | |
tree | 7881f5fccc0c5ffec031b02e485cbb520245cee8 /gobject | |
parent | 72a6b606f7c6c1ed26a8c28c9e4d6dad1ce056bb (diff) | |
download | pygobject-1ef98e2f5d4f8e87f5ae25db93697a26e0c59fe4.tar.gz |
[Bug 315100] gobject.type_register if parameter is not a type
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/gobjectmodule.c | 2 |
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"); |