summaryrefslogtreecommitdiffstats
path: root/gobject/pygflags.c
diff options
context:
space:
mode:
Diffstat (limited to 'gobject/pygflags.c')
-rw-r--r--gobject/pygflags.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gobject/pygflags.c b/gobject/pygflags.c
index 2ce2174..57f1ccb 100644
--- a/gobject/pygflags.c
+++ b/gobject/pygflags.c
@@ -27,6 +27,9 @@
#include <pyglib.h>
#include "pygobject-private.h"
+#include "pygflags.h"
+
+GQuark pygflags_class_key;
#define GET_INT_VALUE(x) (((PyIntObject*)x)->ob_ival)
@@ -497,3 +500,12 @@ PyTypeObject PyGFlags_Type = {
0, /* tp_alloc */
pyg_flags_new, /* tp_new */
};
+
+void
+pygobject_flags_register_types(PyObject *d)
+{
+ pygflags_class_key = g_quark_from_static_string("PyGFlags::class");
+
+ PyGFlags_Type.tp_base = &PyInt_Type;
+ PYGOBJECT_REGISTER_GTYPE(d, PyGFlags_Type, "GFlags", G_TYPE_FLAGS);
+}