summaryrefslogtreecommitdiff
path: root/libeggsmclient
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-01 15:00:15 +0200
committerinfirit <[email protected]>2014-07-01 15:15:29 +0200
commit5fafbe0a1f99da4c7d538032b3cab197dac36be6 (patch)
tree92a632a49b7e01422437b8dc60ad629fdfc4cccc /libeggsmclient
parent73723f5bf6de8ba82f86214170951108fa7b6dc7 (diff)
downloadmate-utils-5fafbe0a1f99da4c7d538032b3cab197dac36be6.tar.bz2
mate-utils-5fafbe0a1f99da4c7d538032b3cab197dac36be6.tar.xz
Cleanup GTK_CHECK_VERSION and unify gtk+2/3 code where possible
gdk_x11_set_sm_client_id | Since 2.24 gdk_x11_display_get_xdisplay | Since 2.2 GDK_DISPLAY_XDISPLAY | Since always GDK_WINDOW_XID | Since always gdk_window_get_screen | Since 2.24 gdk_x11_window_foreign_new_for_display | Since 2.24 gdk_window_get_width | Since 2.24 gdk_window_get_height | Since 2.24
Diffstat (limited to 'libeggsmclient')
-rw-r--r--libeggsmclient/eggsmclient-xsmp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libeggsmclient/eggsmclient-xsmp.c b/libeggsmclient/eggsmclient-xsmp.c
index 9ea00c28..f9741360 100644
--- a/libeggsmclient/eggsmclient-xsmp.c
+++ b/libeggsmclient/eggsmclient-xsmp.c
@@ -368,11 +368,7 @@ 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);