From 4739ebb61fe0774eabce2eeea74c84912654812c Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 3 Nov 2014 12:45:31 +0100 Subject: Apply patch glib-deprecated.diff. Provide support for old GLib versions. --- debian/changelog | 2 ++ src/main.c | 2 ++ tests/dbus-interface.c | 2 ++ tests/server-test.c | 2 ++ 4 files changed, 8 insertions(+) diff --git a/debian/changelog b/debian/changelog index 5762757..c393ad5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ remote-login-service-x2go (1.0.0.1-0x2go1) UNRELEASED; urgency=medium * First forked/upstream release (1.0.0.1): - Apply patch 01_clear_servers.patch. + - Apply patch glib-deprecated.diff. Provide support for old + GLib versions. * Add SERVER_NAME env var support. * Add X2Go support to RLS. * Provide via ppa:x2go/ppa and ppa:x2go/stable on Launchpad. diff --git a/src/main.c b/src/main.c index b6d56d4..c4801ba 100644 --- a/src/main.c +++ b/src/main.c @@ -387,8 +387,10 @@ main (int argc, char * argv[]) { GError * error = NULL; +#if !GLIB_CHECK_VERSION (2, 35, 1) /* Init the GTypes */ g_type_init(); +#endif /* Setup i18n */ setlocale (LC_ALL, ""); diff --git a/tests/dbus-interface.c b/tests/dbus-interface.c index e699ea5..2427b34 100644 --- a/tests/dbus-interface.c +++ b/tests/dbus-interface.c @@ -571,7 +571,9 @@ test_dbus_suite (void) 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 */ diff --git a/tests/server-test.c b/tests/server-test.c index 32299af..06b6233 100644 --- a/tests/server-test.c +++ b/tests/server-test.c @@ -270,7 +270,9 @@ test_objects_suite (void) 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 */ -- cgit v1.2.3