summaryrefslogtreecommitdiffstats
path: root/gobject/gobjectmodule.c
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-26 22:37:39 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-26 22:37:39 +0000
commitc907856672c1f14acd5e161a51cfc6cff890f592 (patch)
tree66525fc341868f106265d3dc7a2d5ddf6cc599db /gobject/gobjectmodule.c
parent6b93ae8cb09fec1c95b42f791858b93f0ca10a53 (diff)
downloadpygobject-c907856672c1f14acd5e161a51cfc6cff890f592.tar.gz
pygobject-c907856672c1f14acd5e161a51cfc6cff890f592.tar.xz
pygobject-c907856672c1f14acd5e161a51cfc6cff890f592.zip
Move paramspec registration to a separate file, add a header for the
2008-07-27 Johan Dahlin <johan@gnome.org> * gobject/Makefile.am: * gobject/gobjectmodule.c (init_gobject): * gobject/pygobject-private.h: * gobject/pygobject.c: * gobject/pygparamspec.c (pygobject_paramspec_register_types): * gobject/pygparamspec.h: * gobject/pygtype.c: Move paramspec registration to a separate file, add a header for the internal API. svn path=/trunk/; revision=878
Diffstat (limited to 'gobject/gobjectmodule.c')
-rw-r--r--gobject/gobjectmodule.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index aa3e6c5..c08edf6 100644
--- a/gobject/gobjectmodule.c
+++ b/gobject/gobjectmodule.c
@@ -26,9 +26,10 @@
#include <gobject/gvaluecollector.h>
#include <pyglib.h>
+#include <pythread.h>
#include "pygobject-private.h"
-#include "pythread.h"
#include "pyginterface.h"
+#include "pygparamspec.h"
#ifdef HAVE_FFI_H
#include "ffi-marshaller.h"
@@ -2566,15 +2567,9 @@ init_gobject(void)
PyObject *descr;
PyObject *warning;
- PyGParamSpec_Type.ob_type = &PyType_Type;
- if (PyType_Ready(&PyGParamSpec_Type))
- return;
-
m = Py_InitModule("gobject._gobject", pygobject_functions);
d = PyModule_GetDict(m);
- PyDict_SetItemString(d, "GParamSpec", (PyObject *)&PyGParamSpec_Type);
-
g_type_init();
pyglib_init();
@@ -2619,6 +2614,7 @@ init_gobject(void)
Py_DECREF(o);
pygobject_interface_register_types(d);
+ pygobject_paramspec_register_types(d);
REGISTER_GTYPE(d, PyGBoxed_Type, "GBoxed", G_TYPE_BOXED);
REGISTER_GTYPE(d, PyGPointer_Type, "GPointer", G_TYPE_POINTER);