diff options
author | Arjan Molenaar <gaphor@gmail.com> | 2021-08-22 19:39:39 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2021-09-19 19:29:57 +0000 |
commit | 26c334b505ac7f251e7e8c36deca0e119eb030b5 (patch) | |
tree | 4f9aa8853fa5ef4663c2e5a42b28f058acc4d1aa | |
parent | 85fdd15079ed65b78203e45ff34b19ca33a40670 (diff) | |
download | pygobject-26c334b505ac7f251e7e8c36deca0e119eb030b5.tar.gz |
Use quark variable for class on gtype
-rw-r--r-- | gi/gimodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/gimodule.c b/gi/gimodule.c index 2d1dfe20..4668369c 100644 --- a/gi/gimodule.c +++ b/gi/gimodule.c @@ -1312,7 +1312,7 @@ pyg_type_register(PyTypeObject *class, const char *type_name) /* store pointer to the class with the GType */ Py_INCREF(class); - g_type_set_qdata(instance_type, g_quark_from_string("PyGObject::class"), + g_type_set_qdata(instance_type, pygobject_class_key, class); /* Mark this GType as a custom python type */ |