From 3f386383dc0459fb857c0831aeecb9072f7085d7 Mon Sep 17 00:00:00 2001 From: Jan Djärv Date: Mon, 16 Sep 2013 20:17:35 +0200 Subject: * xsettings.c (init_gconf, init_gsettings): Check for Glib 2.36.0 before calling g_type_init. --- src/xsettings.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/xsettings.c') diff --git a/src/xsettings.c b/src/xsettings.c index b9813e2b369..a64e09c92e7 100644 --- a/src/xsettings.c +++ b/src/xsettings.c @@ -804,7 +804,9 @@ init_gsettings (void) int schema_found = 0; #ifdef HAVE_G_TYPE_INIT +#if ! GLIB_CHECK_VERSION (2, 36, 0) g_type_init (); +#endif #endif schemas = g_settings_list_schemas (); @@ -861,7 +863,9 @@ init_gconf (void) char *s; #ifdef HAVE_G_TYPE_INIT +#if ! GLIB_CHECK_VERSION (2, 36, 0) g_type_init (); +#endif #endif gconf_client = gconf_client_get_default (); -- cgit v1.2.3