summaryrefslogtreecommitdiff
path: root/libeggsmclient/eggsmclient-xsmp.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-04-30 23:23:11 +0200
committerStefano Karapetsas <[email protected]>2014-04-30 23:23:11 +0200
commit16ba170d248db4ce06ac5b4f346faff6eaddd1b7 (patch)
treee47439b4ad718cf9420bfc13413075fbffdc0fab /libeggsmclient/eggsmclient-xsmp.c
parenta461197a8398b18b2f9bebfd4608395ba334b012 (diff)
downloadmate-utils-16ba170d248db4ce06ac5b4f346faff6eaddd1b7.tar.bz2
mate-utils-16ba170d248db4ce06ac5b4f346faff6eaddd1b7.tar.xz
libeggsmclient: Add GTK3 support
Diffstat (limited to 'libeggsmclient/eggsmclient-xsmp.c')
-rw-r--r--libeggsmclient/eggsmclient-xsmp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libeggsmclient/eggsmclient-xsmp.c b/libeggsmclient/eggsmclient-xsmp.c
index c72839c6..7e0a1911 100644
--- a/libeggsmclient/eggsmclient-xsmp.c
+++ b/libeggsmclient/eggsmclient-xsmp.c
@@ -367,7 +367,11 @@ sm_client_xsmp_startup (EggSMClient *client,
free (ret_client_id);
gdk_threads_enter ();
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_x11_set_sm_client_id (xsmp->client_id);
+#else
gdk_set_sm_client_id (xsmp->client_id);
+#endif
gdk_threads_leave ();
g_debug ("Got client ID \"%s\"", xsmp->client_id);