aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/glib-deprecated.diff
blob: c6e51e5f0d20356e7481a22424f360254de633a4 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Index: b/src/main.c
===================================================================
--- a/src/main.c
+++ b/src/main.c
@@ -387,8 +387,10 @@
 {
 	GError * error = NULL;
 
+#if !GLIB_CHECK_VERSION (2, 35, 1)
 	/* Init the GTypes */
 	g_type_init();
+#endif
 
 	/* Setup i18n */
 	setlocale (LC_ALL, ""); 
Index: b/tests/dbus-interface.c
===================================================================
--- a/tests/dbus-interface.c
+++ b/tests/dbus-interface.c
@@ -571,7 +571,9 @@
 gint
 main (gint argc, gchar * argv[])
 {
+#if !GLIB_CHECK_VERSION (2, 35, 1)
 	g_type_init();
+#endif
 	g_test_init(&argc, &argv, NULL);
 
 	/* Test suites */
Index: b/tests/server-test.c
===================================================================
--- a/tests/server-test.c
+++ b/tests/server-test.c
@@ -270,7 +270,9 @@
 gint
 main (gint argc, gchar * argv[])
 {
+#if !GLIB_CHECK_VERSION (2, 35, 1)
 	g_type_init();
+#endif
 	g_test_init(&argc, &argv, NULL);
 
 	/* Test suites */