]> code.delx.au - pulseaudio/blobdiff - src/modules/gconf/gconf-helper.c
gconf: Avoid calling deprecated function if possible
[pulseaudio] / src / modules / gconf / gconf-helper.c
index f5016faf2f7fd7ada1e82595c9716aa34ede9a0c..3c1180c745d04088fe4e91e531d1662d303359f6 100644 (file)
@@ -5,7 +5,7 @@
 
   PulseAudio is free software; you can redistribute it and/or modify
   it under the terms of the GNU Lesser General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
+  by the Free Software Foundation; either version 2.1 of the License,
   or (at your option) any later version.
 
   PulseAudio is distributed in the hope that it will be useful, but
@@ -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;