[pulseaudio-discuss] [PATCH 2/2] gconf: Avoid calling deprecated function if possible

Arun Raghavan arun at accosted.net
Tue Apr 22 00:35:19 PDT 2014


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 fbd8cfd..3c1180c 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;
-- 
1.9.0



More information about the pulseaudio-discuss mailing list