summaryrefslogtreecommitdiff
path: root/mate-session/test-client-dbus.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-10-15 15:07:24 +0200
committerStefano Karapetsas <[email protected]>2013-10-15 15:07:24 +0200
commit954585510854675bdfdf229b177a4e5f778645e7 (patch)
treed1e96e3669f95d3ad01ec66405bc071d03ac4fd1 /mate-session/test-client-dbus.c
parent2725ff7ec27f0158bc3d6bb118e5e5649180e474 (diff)
downloadmate-session-manager-954585510854675bdfdf229b177a4e5f778645e7.tar.bz2
mate-session-manager-954585510854675bdfdf229b177a4e5f778645e7.tar.xz
Fix g_type_init deprecation
Diffstat (limited to 'mate-session/test-client-dbus.c')
-rw-r--r--mate-session/test-client-dbus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mate-session/test-client-dbus.c b/mate-session/test-client-dbus.c
index fa888ed..8f8fbe9 100644
--- a/mate-session/test-client-dbus.c
+++ b/mate-session/test-client-dbus.c
@@ -240,7 +240,9 @@ main (int argc,
g_log_set_always_fatal (G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING);
+#if !GLIB_CHECK_VERSION (2, 36, 0)
g_type_init ();
+#endif
res = session_manager_connect ();
if (! res) {