aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/eggsmclient-xsmp.c
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2010-12-23 20:32:01 +0800
committerXan Lopez <xan@gnome.org>2010-12-23 20:32:01 +0800
commitf3c2e279e2627b405947a785375e733195f5f7a1 (patch)
treeea7ee6463f815a7ad73d11f74919927cc079d350 /lib/egg/eggsmclient-xsmp.c
parentc8bd3e01b3f7a451b318a609a65feb1db268dd95 (diff)
downloadgsoc2013-epiphany-f3c2e279e2627b405947a785375e733195f5f7a1.tar
gsoc2013-epiphany-f3c2e279e2627b405947a785375e733195f5f7a1.tar.gz
gsoc2013-epiphany-f3c2e279e2627b405947a785375e733195f5f7a1.tar.bz2
gsoc2013-epiphany-f3c2e279e2627b405947a785375e733195f5f7a1.tar.lz
gsoc2013-epiphany-f3c2e279e2627b405947a785375e733195f5f7a1.tar.xz
gsoc2013-epiphany-f3c2e279e2627b405947a785375e733195f5f7a1.tar.zst
gsoc2013-epiphany-f3c2e279e2627b405947a785375e733195f5f7a1.zip
egg: cherry-pick fixes for compilation against GTK+ 2.91.7
Diffstat (limited to 'lib/egg/eggsmclient-xsmp.c')
-rw-r--r--lib/egg/eggsmclient-xsmp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/egg/eggsmclient-xsmp.c b/lib/egg/eggsmclient-xsmp.c
index 81af7d2b6..96b2c1271 100644
--- a/lib/egg/eggsmclient-xsmp.c
+++ b/lib/egg/eggsmclient-xsmp.c
@@ -35,8 +35,6 @@
#include <unistd.h>
#include <X11/SM/SMlib.h>
-#include <gdk/gdk.h>
-
#define EGG_TYPE_SM_CLIENT_XSMP (egg_sm_client_xsmp_get_type ())
#define EGG_SM_CLIENT_XSMP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_SM_CLIENT_XSMP, EggSMClientXSMP))
#define EGG_SM_CLIENT_XSMP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_SM_CLIENT_XSMP, EggSMClientXSMPClass))
@@ -373,7 +371,11 @@ sm_client_xsmp_startup (EggSMClient *client,
free (ret_client_id);
gdk_threads_enter ();
+#if !GTK_CHECK_VERSION(2,91,7) && !GTK_CHECK_VERSION(3,0,0)
gdk_set_sm_client_id (xsmp->client_id);
+#else
+ gdk_x11_set_sm_client_id (xsmp->client_id);
+#endif
gdk_threads_leave ();
g_debug ("Got client ID \"%s\"", xsmp->client_id);