diff options
Diffstat (limited to 'gobject/pygboxed.c')
| -rw-r--r-- | gobject/pygboxed.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gobject/pygboxed.c b/gobject/pygboxed.c index 01217bb..d304fc4 100644 --- a/gobject/pygboxed.c +++ b/gobject/pygboxed.c @@ -26,6 +26,10 @@ #include <pyglib.h> #include "pygobject-private.h" +#include "pygboxed.h" + +GQuark pygboxed_type_key; +GQuark pygboxed_marshal_key; static void pyg_boxed_dealloc(PyGBoxed *self) @@ -243,3 +247,12 @@ pyg_boxed_new(GType boxed_type, gpointer boxed, gboolean copy_boxed, return (PyObject *)self; } +void +pygobject_boxed_register_types(PyObject *d) +{ + pygboxed_type_key = g_quark_from_static_string("PyGBoxed::class"); + pygboxed_marshal_key = g_quark_from_static_string("PyGBoxed::marshal"); + + PYGOBJECT_REGISTER_GTYPE(d, PyGBoxed_Type, "GBoxed", G_TYPE_BOXED); + +} |
