pygobject r785 - in trunk: . gobject
- From: gjc svn gnome org
- To: svn-commits-list gnome org
- Subject: pygobject r785 - in trunk: . gobject
- Date: Fri, 30 May 2008 12:24:50 +0000 (UTC)
Author: gjc
Date: Fri May 30 12:24:49 2008
New Revision: 785
URL: http://svn.gnome.org/viewvc/pygobject?rev=785&view=rev
Log:
Add the GParamSpec type wrapper to the module dictionary.
Modified:
trunk/ChangeLog
trunk/gobject/gobjectmodule.c
Modified: trunk/gobject/gobjectmodule.c
==============================================================================
--- trunk/gobject/gobjectmodule.c (original)
+++ trunk/gobject/gobjectmodule.c Fri May 30 12:24:49 2008
@@ -3573,10 +3573,14 @@
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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]