[cogl/cogl-1.20] Conditional call to g_type_init()



commit e7ef07652a89b018af1dc20539480b349e9d851f
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Jun 10 14:12:22 2015 +0100

    Conditional call to g_type_init()
    
    The explicit type system initialization has been deprecated since
    GLib 2.36. It's done automatically, now.

 cogl/cogl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl.c b/cogl/cogl.c
index d269bc4..6cc73d0 100644
--- a/cogl/cogl.c
+++ b/cogl/cogl.c
@@ -760,7 +760,7 @@ _cogl_init (void)
       bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 #endif
 
-#ifdef COGL_HAS_GTYPE_SUPPORT
+#if defined(COGL_HAS_GTYPE_SUPPORT) && !GLIB_CHECK_VERSION (2, 36, 0)
       g_type_init ();
 #endif
 


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