summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-21 22:14:51 +0100
committerStefano Karapetsas <[email protected]>2014-01-21 22:14:51 +0100
commit692f171232509da0704a3d7a8f752306fb0c2323 (patch)
tree48aabaafc7f70e48f408942867fe253352a71c01
parentf31a46d1eb74e0fc260fea31aa73e08d12ddece3 (diff)
downloadatril-692f171232509da0704a3d7a8f752306fb0c2323.tar.bz2
atril-692f171232509da0704a3d7a8f752306fb0c2323.tar.xz
Fix gdk_set_sm_client_id deprecation
-rw-r--r--cut-n-paste/smclient/eggsmclient-xsmp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cut-n-paste/smclient/eggsmclient-xsmp.c b/cut-n-paste/smclient/eggsmclient-xsmp.c
index 90f201d9..d971790d 100644
--- a/cut-n-paste/smclient/eggsmclient-xsmp.c
+++ b/cut-n-paste/smclient/eggsmclient-xsmp.c
@@ -367,7 +367,11 @@ sm_client_xsmp_startup (EggSMClient *client,
free (ret_client_id);
gdk_threads_enter ();
+#if GTK_CHECK_VERSION (2, 24, 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);