summaryrefslogtreecommitdiff
path: root/src/eggsmclient-xsmp.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-05-26 16:14:26 +0300
committermonsta <[email protected]>2016-05-26 16:54:22 +0300
commitea302a83da329d7f182724fb0c9d1a4d22aa9362 (patch)
tree1cde487a406441d57fcf0356a5945159eb12f471 /src/eggsmclient-xsmp.c
parent8195dc9b0e609733ae76d2da7201fe1bd73c7d2d (diff)
downloadmate-terminal-ea302a83da329d7f182724fb0c9d1a4d22aa9362.tar.bz2
mate-terminal-ea302a83da329d7f182724fb0c9d1a4d22aa9362.tar.xz
drop old GTK+2 code
Diffstat (limited to 'src/eggsmclient-xsmp.c')
-rw-r--r--src/eggsmclient-xsmp.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/eggsmclient-xsmp.c b/src/eggsmclient-xsmp.c
index f278ded..0b0b960 100644
--- a/src/eggsmclient-xsmp.c
+++ b/src/eggsmclient-xsmp.c
@@ -36,9 +36,7 @@
#include <X11/SM/SMlib.h>
#include <gdk/gdk.h>
-#if GTK_CHECK_VERSION (3, 0, 0)
#include <gdk/gdkx.h>
-#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))
@@ -376,13 +374,7 @@ sm_client_xsmp_startup (EggSMClient *client,
xsmp->client_id = g_strdup (ret_client_id);
free (ret_client_id);
-#if GTK_CHECK_VERSION (3, 0, 0)
gdk_x11_set_sm_client_id (xsmp->client_id);
-#else
- gdk_threads_enter ();
- gdk_set_sm_client_id (xsmp->client_id);
- gdk_threads_leave ();
-#endif
g_debug ("Got client ID \"%s\"", xsmp->client_id);
}
@@ -568,10 +560,6 @@ idle_do_pending_events (gpointer data)
EggSMClientXSMP *xsmp = data;
EggSMClient *client = data;
-#if !GTK_CHECK_VERSION (3, 0, 0)
- gdk_threads_enter ();
-#endif
-
xsmp->idle = 0;
if (xsmp->waiting_to_emit_quit)
@@ -595,9 +583,6 @@ idle_do_pending_events (gpointer data)
}
out:
-#if !GTK_CHECK_VERSION (3, 0, 0)
- gdk_threads_leave ();
-#endif
return FALSE;
}
@@ -1330,13 +1315,7 @@ process_ice_messages (IceConn ice_conn)
{
IceProcessMessagesStatus status;
-#if GTK_CHECK_VERSION (3, 0, 0)
- status = IceProcessMessages (ice_conn, NULL, NULL);
-#else
- gdk_threads_enter ();
status = IceProcessMessages (ice_conn, NULL, NULL);
- gdk_threads_leave ();
-#endif
switch (status)
{