summaryrefslogtreecommitdiff
path: root/pluma/smclient
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-18 21:30:05 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-01 22:46:55 +0100
commita08bd0ed2f0959255dc86f7976ec42d512e813b9 (patch)
tree4a5d4b25f0067448e6747cd8e3ac5b957f616caa /pluma/smclient
parent6454339a1a2141ff8d33dce2dfff4fd0fc52b227 (diff)
downloadpluma-a08bd0ed2f0959255dc86f7976ec42d512e813b9.tar.bz2
pluma-a08bd0ed2f0959255dc86f7976ec42d512e813b9.tar.xz
GTK3: don't use deprecated gdk_threads_{enter/leave}
Diffstat (limited to 'pluma/smclient')
-rw-r--r--pluma/smclient/eggsmclient-xsmp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/pluma/smclient/eggsmclient-xsmp.c b/pluma/smclient/eggsmclient-xsmp.c
index df2aa583..a1a69594 100644
--- a/pluma/smclient/eggsmclient-xsmp.c
+++ b/pluma/smclient/eggsmclient-xsmp.c
@@ -367,9 +367,13 @@ 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_threads_enter ();
+#endif
gdk_x11_set_sm_client_id (xsmp->client_id);
+#if !GTK_CHECK_VERSION (3, 0, 0)
gdk_threads_leave ();
+#endif
g_debug ("Got client ID \"%s\"", xsmp->client_id);
}
@@ -537,7 +541,9 @@ 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;
@@ -562,7 +568,9 @@ idle_do_pending_events (gpointer data)
}
out:
+#if !GTK_CHECK_VERSION (3, 0, 0)
gdk_threads_leave ();
+#endif
return FALSE;
}
@@ -1284,9 +1292,13 @@ process_ice_messages (IceConn ice_conn)
{
IceProcessMessagesStatus status;
+#if !GTK_CHECK_VERSION (3, 0, 0)
gdk_threads_enter ();
+#endif
status = IceProcessMessages (ice_conn, NULL, NULL);
+#if !GTK_CHECK_VERSION (3, 0, 0)
gdk_threads_leave ();
+#endif
switch (status)
{