diff options
author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2008-05-30 12:24:49 +0000 |
---|---|---|
committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2008-05-30 12:24:49 +0000 |
commit | e27d8b7871ca294579b51fb7f0a4f6e40c830658 (patch) | |
tree | 2e4e49f7fb9440be6d0f9ff25bc273d97a1969bb | |
parent | 92bb3ce22c25cdd0b155557a24a91a2ace707661 (diff) | |
download | pygobject-e27d8b7871ca294579b51fb7f0a4f6e40c830658.tar.gz pygobject-e27d8b7871ca294579b51fb7f0a4f6e40c830658.tar.xz pygobject-e27d8b7871ca294579b51fb7f0a4f6e40c830658.zip |
Add the GParamSpec type wrapper to the module dictionary.
svn path=/trunk/; revision=785
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gobject/gobjectmodule.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2008-05-30 Gustavo J. A. M. Carneiro <gjc@gnome.org> + + * gobject/gobjectmodule.c (init_gobject): Call PyType_Ready for + PyGParamSpec_Type, and add it to the module dict. + 2008-05-23 Johan Dahlin <jdahlin@async.com.br> * gio/gio.defs: diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index fa12a03..d08e38a 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -3573,10 +3573,14 @@ init_gobject(void) 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(); pygboxed_type_key = g_quark_from_static_string("PyGBoxed::class"); |