~ubuntu-branches/ubuntu/saucy/remote-login-service/saucy

« back to all changes in this revision

Viewing changes to debian/patches/glib-deprecated.diff

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-02-26 10:40:57 UTC
  • Revision ID: package-import@ubuntu.com-20130226104057-xfbumfiay71vkgfv
Tags: 1.0.0-0ubuntu3
Don't use deprecated g_type_init() with recent glib2.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: b/src/main.c
 
2
===================================================================
 
3
--- a/src/main.c
 
4
+++ b/src/main.c
 
5
@@ -387,8 +387,10 @@
 
6
 {
 
7
        GError * error = NULL;
 
8
 
 
9
+#if !GLIB_CHECK_VERSION (2, 35, 1)
 
10
        /* Init the GTypes */
 
11
        g_type_init();
 
12
+#endif
 
13
 
 
14
        /* Setup i18n */
 
15
        setlocale (LC_ALL, ""); 
 
16
Index: b/tests/dbus-interface.c
 
17
===================================================================
 
18
--- a/tests/dbus-interface.c
 
19
+++ b/tests/dbus-interface.c
 
20
@@ -571,7 +571,9 @@
 
21
 gint
 
22
 main (gint argc, gchar * argv[])
 
23
 {
 
24
+#if !GLIB_CHECK_VERSION (2, 35, 1)
 
25
        g_type_init();
 
26
+#endif
 
27
        g_test_init(&argc, &argv, NULL);
 
28
 
 
29
        /* Test suites */
 
30
Index: b/tests/server-test.c
 
31
===================================================================
 
32
--- a/tests/server-test.c
 
33
+++ b/tests/server-test.c
 
34
@@ -270,7 +270,9 @@
 
35
 gint
 
36
 main (gint argc, gchar * argv[])
 
37
 {
 
38
+#if !GLIB_CHECK_VERSION (2, 35, 1)
 
39
        g_type_init();
 
40
+#endif
 
41
        g_test_init(&argc, &argv, NULL);
 
42
 
 
43
        /* Test suites */