From 84fd17a0b57ef196fa6433f180d66213b184cabf Mon Sep 17 00:00:00 2001 From: infirit Date: Thu, 11 Dec 2014 16:44:16 +0100 Subject: Gtk3: Port eggsmclient-xsmp --- src/eggsmclient-xsmp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/eggsmclient-xsmp.c b/src/eggsmclient-xsmp.c index c52b689..8d1c501 100644 --- a/src/eggsmclient-xsmp.c +++ b/src/eggsmclient-xsmp.c @@ -36,6 +36,9 @@ #include #include +#if GTK_CHECK_VERSION (3, 0, 0) +#include +#endif #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)) @@ -374,7 +377,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); -- cgit v1.2.1