gconf: Avoid calling deprecated function if possible

g_type_init() is need no longer be called explicitly from glib 2.36
onwards.
This commit is contained in:
Arun Raghavan 2014-04-22 13:05:19 +05:30 committed by Tanu Kaskinen
parent a30650d2ce
commit c78860c97b

View file

@ -99,7 +99,9 @@ int main(int argc, char *argv[]) {
GConfClient *client; GConfClient *client;
GSList *modules, *m; GSList *modules, *m;
#if !GLIB_CHECK_VERSION(2,36,0)
g_type_init(); g_type_init();
#endif
if (!(client = gconf_client_get_default())) if (!(client = gconf_client_get_default()))
goto fail; goto fail;