diff options
author | Johan Dahlin <johan@gnome.org> | 2008-07-27 09:00:06 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-07-27 09:00:06 +0000 |
commit | 28cc14391b52dcbef2e148dcc985b2803623234d (patch) | |
tree | b32b6503d4908b8742d74b8040954d273011e592 /gobject/pygpointer.c | |
parent | 6fafcbb5c9492c0f1c9022389107b7955d9b9318 (diff) | |
download | pygobject-28cc14391b52dcbef2e148dcc985b2803623234d.tar.gz pygobject-28cc14391b52dcbef2e148dcc985b2803623234d.tar.xz pygobject-28cc14391b52dcbef2e148dcc985b2803623234d.zip |
Split out quark and type registration to the respective implementation
2008-07-27 Johan Dahlin <johan@gnome.org>
* gobject/Makefile.am:
* gobject/gobjectmodule.c (init_gobject):
* gobject/pygboxed.c (pygobject_boxed_register_types):
* gobject/pygboxed.h:
* gobject/pygenum.c (pygobject_enum_register_types):
* gobject/pygenum.h:
* gobject/pygflags.c (pygobject_flags_register_types):
* gobject/pygflags.h:
* gobject/pygpointer.c (pygobject_pointer_register_types):
* gobject/pygpointer.h:
Split out quark and type registration to the respective
implementation source files, add headers.
svn path=/trunk/; revision=880
Diffstat (limited to 'gobject/pygpointer.c')
-rw-r--r-- | gobject/pygpointer.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gobject/pygpointer.c b/gobject/pygpointer.c index 6a7d9e2..1850d7b 100644 --- a/gobject/pygpointer.c +++ b/gobject/pygpointer.c @@ -26,6 +26,9 @@ #include <pyglib.h> #include "pygobject-private.h" +#include "pygpointer.h" + +GQuark pygpointer_class_key; static void pyg_pointer_dealloc(PyGPointer *self) @@ -209,3 +212,12 @@ pyg_pointer_new(GType pointer_type, gpointer pointer) return (PyObject *)self; } + +void +pygobject_pointer_register_types(PyObject *d) +{ + pygpointer_class_key = g_quark_from_static_string("PyGPointer::class"); + + PYGOBJECT_REGISTER_GTYPE(d, PyGPointer_Type, "GPointer", G_TYPE_POINTER); + +} |