[libgweather] Remove deprecated g_type_init() calls



commit 776ead1597271a4102c43c3a44a5d9629a79220b
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Tue Nov 20 00:47:11 2012 +0100

    Remove deprecated g_type_init() calls
    
    GLib dependency bumped accordingly

 configure.ac                |    2 +-
 libgweather/test_metar.c    |    2 --
 libgweather/test_sun_moon.c |    2 --
 3 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9b63a44..c5d268a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,7 +37,7 @@ AC_MSG_RESULT([$gweather_native_win32])
 AM_CONDITIONAL(OS_WIN32, [test "$gweather_native_win32" = "yes"])
 
 GTK_REQUIRED=2.90.0
-GLIB_REQUIRED=2.13.0
+GLIB_REQUIRED=2.35.1
 LIBSOUP_REQUIRED=2.4.0
 LIBSOUP_GNOME_REQUIRED=2.25.1
 LIBXML_REQUIRED=2.6.0
diff --git a/libgweather/test_metar.c b/libgweather/test_metar.c
index 3ecad6d..5ea4435 100644
--- a/libgweather/test_metar.c
+++ b/libgweather/test_metar.c
@@ -29,8 +29,6 @@ main (int argc, char **argv)
     int len;
     GWeatherInfo *info;
 
-    g_type_init ();
-
     context = g_option_context_new ("- test libgweather metar parser");
     g_option_context_add_main_entries (context, entries, NULL);
     g_option_context_parse (context, &argc, &argv, &error);
diff --git a/libgweather/test_sun_moon.c b/libgweather/test_sun_moon.c
index 325696f..0f828c2 100644
--- a/libgweather/test_sun_moon.c
+++ b/libgweather/test_sun_moon.c
@@ -30,8 +30,6 @@ main (int argc, char **argv)
 	{ NULL }
     };
 
-    g_type_init ();
-
     memset(&location, 0, sizeof(WeatherLocation));
 
     context = g_option_context_new ("- test libgweather sun/moon calculations");



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