[devhelp] build: require glib 2.36 and avoid using g_type_init()



commit b3aa19c31ee861a776065af621de9d3518fd937e
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Mon Jul 1 19:29:40 2013 +0200

    build: require glib 2.36 and avoid using g_type_init()
    
    Since 2.36, g_type_init() is deprecated. So just bump the required glib version
    to 2.36, as this is even less than the required Glib version required by the
    GTK+ version that we're requiring :9

 configure.ac |    4 ++--
 src/dh-app.c |    2 --
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3bb917e..5a49f54 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,12 +51,12 @@ PKG_CHECK_MODULES(DEVHELP, [
   gthread-2.0 >= 2.10.0
   gtk+-3.0 >= 3.9.2
   webkit2gtk-3.0 >= 2.0.0
-  gio-2.0 >= 2.32
+  gio-2.0 >= 2.36
 ])
 
 PKG_CHECK_MODULES(LIBDEVHELP, [
   gtk+-3.0 >= 3.9.2
-  gio-2.0 >= 2.32
+  gio-2.0 >= 2.36
   webkit2gtk-3.0 >= 2.0.0
 ])
 
diff --git a/src/dh-app.c b/src/dh-app.c
index e0f37ce..f1c5c4a 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -340,8 +340,6 @@ dh_app_new (void)
 {
         DhApp *application;
 
-        g_type_init ();
-
         /* i18n: Please don't translate "Devhelp" (it's marked as translatable
          * for transliteration only) */
         g_set_application_name (_("Devhelp"));


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