summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-02-08 14:02:29 +0100
committerWolfgang Ulbrich <[email protected]>2016-02-09 15:34:03 +0100
commitf8c239b61ef61d8cb2a125d1cf8742919b84c723 (patch)
tree3bdf84f82d30dac6e32f042fe17e15c001d5a2a6
parent912286f8a198c6aab7f3a79ae1348b80d84f8ce5 (diff)
downloadmate-panel-f8c239b61ef61d8cb2a125d1cf8742919b84c723.tar.bz2
mate-panel-f8c239b61ef61d8cb2a125d1cf8742919b84c723.tar.xz
GTK3: don't use deprecated gdk_threads_{enter/leave}
-rw-r--r--mate-panel/libegg/eggsmclient-xsmp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mate-panel/libegg/eggsmclient-xsmp.c b/mate-panel/libegg/eggsmclient-xsmp.c
index dfe05820..726c13da 100644
--- a/mate-panel/libegg/eggsmclient-xsmp.c
+++ b/mate-panel/libegg/eggsmclient-xsmp.c
@@ -368,9 +368,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);
}
@@ -538,7 +542,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;
@@ -563,7 +569,9 @@ idle_do_pending_events (gpointer data)
}
out:
+#if !GTK_CHECK_VERSION (3, 0, 0)
gdk_threads_leave ();
+#endif
return FALSE;
}
@@ -1285,9 +1293,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)
{