summaryrefslogtreecommitdiff
path: root/debian/patches/0001-Don-t-invoke-g_type_init-for-recent-glib.patch
blob: 24558b74c80125ecc3cf63044bc8e06aeac85121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Fri, 10 May 2013 16:42:36 +0200
Subject: Don't invoke g_type_init for recent glib

Since it it's not needed and causes a deprecation warning.

Debian-Bug: #707469
---
 src/nm-iodine-service.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/nm-iodine-service.c b/src/nm-iodine-service.c
index b55ca2d..c99c384 100644
--- a/src/nm-iodine-service.c
+++ b/src/nm-iodine-service.c
@@ -687,7 +687,9 @@ int main (int argc, char *argv[])
 	NMIODINEPlugin *plugin;
 	GMainLoop *main_loop;
 
+#if !GLIB_CHECK_VERSION(2,36,0)
 	g_type_init ();
+#endif
 
 	plugin = nm_iodine_plugin_new ();
 	if (!plugin)