[pygobject] Don't call g_type_init() with glib >= 2.35.x



commit 655e2eece14f5de3baf4505f524d17484b8b5a75
Author: Martin Pitt <martinpitt gnome org>
Date:   Tue Jan 15 10:29:47 2013 +0100

    Don't call g_type_init() with glib >= 2.35.x
    
    This fixes a deprecation warning.

 gi/_gobject/gobjectmodule.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gi/_gobject/gobjectmodule.c b/gi/_gobject/gobjectmodule.c
index 304a041..ce2170a 100644
--- a/gi/_gobject/gobjectmodule.c
+++ b/gi/_gobject/gobjectmodule.c
@@ -2205,7 +2205,9 @@ PYGLIB_MODULE_START(_gobject, "_gobject")
 {
     PyObject *d;
 
+#if !defined(GLIB_VERSION_2_36)
     g_type_init();
+#endif
     pyglib_init();
 
     d = PyModule_GetDict(module);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]