[hitori] core: Only call g_type_init() if compiled against old GLib



commit e63fd1dbdf6153a52bcd6a6041a4b29372642657
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Aug 2 10:54:00 2013 +0200

    core: Only call g_type_init() if compiled against old GLib

 src/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 56c3b1b..5cb938f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -438,7 +438,9 @@ main (int argc, char *argv[])
        HitoriApplication *app;
        int status;
 
+#if !GLIB_CHECK_VERSION (2, 35, 0)
        g_type_init ();
+#endif
 
        app = hitori_application_new ();
        status = g_application_run (G_APPLICATION (app), argc, argv);


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