[gnome-font-viewer] main: don't call g_type_init()



commit 8b1f33395115c206b038d419e18c5498d4634799
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Jan 14 10:40:01 2013 -0500

    main: don't call g_type_init()
    
    It's deprecated. Bump the required version of GLib to 2.35.1 for this.

 configure.ac           |    2 +-
 src/font-thumbnailer.c |    2 --
 src/font-view.c        |    2 --
 3 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b9b9625..ce356f5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,7 +36,7 @@ AC_CACHE_SAVE
 
 GLIB_GSETTINGS
 
-GLIB_MIN_VERSION=2.31.0
+GLIB_MIN_VERSION=2.35.1
 GTK_MIN_VERSION=3.0.0
 
 PKG_CHECK_MODULES(FONTVIEW,
diff --git a/src/font-thumbnailer.c b/src/font-thumbnailer.c
index ef5d7ed..3e76323 100644
--- a/src/font-thumbnailer.c
+++ b/src/font-thumbnailer.c
@@ -200,8 +200,6 @@ main (int argc,
 
     setlocale (LC_ALL, "");
 
-    g_type_init ();
-
     context = g_option_context_new (NULL);
     g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE);
 
diff --git a/src/font-view.c b/src/font-view.c
index 5af4aad..bcb32d4 100644
--- a/src/font-view.c
+++ b/src/font-view.c
@@ -855,8 +855,6 @@ font_view_application_class_init (FontViewApplicationClass *klass)
 static GApplication *
 font_view_application_new (void)
 {
-    g_type_init ();
-
     if (!FcInit ())
         g_critical ("Can't initialize fontconfig library");
 



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