From c78860c97bf896c40bb1d8750835c40deeb198d1 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Tue, 22 Apr 2014 13:05:19 +0530 Subject: [PATCH] gconf: Avoid calling deprecated function if possible g_type_init() is need no longer be called explicitly from glib 2.36 onwards. --- src/modules/gconf/gconf-helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/gconf/gconf-helper.c b/src/modules/gconf/gconf-helper.c index fbd8cfd8..3c1180c7 100644 --- a/src/modules/gconf/gconf-helper.c +++ b/src/modules/gconf/gconf-helper.c @@ -99,7 +99,9 @@ int main(int argc, char *argv[]) { GConfClient *client; GSList *modules, *m; +#if !GLIB_CHECK_VERSION(2,36,0) g_type_init(); +#endif if (!(client = gconf_client_get_default())) goto fail; -- 2.39.2