diff options
author | raveit65 <[email protected]> | 2016-06-22 10:13:16 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-06-22 10:13:16 +0200 |
commit | fd09fb9251212e7161796a2007f2b1f8c97e57a9 (patch) | |
tree | 5a0fc99550ed5423663d7569e4c55acd012781b5 /cut-n-paste/smclient | |
parent | c61e03f369a4221969779c67a52305b52acde03d (diff) | |
download | atril-fd09fb9251212e7161796a2007f2b1f8c97e57a9.tar.bz2 atril-fd09fb9251212e7161796a2007f2b1f8c97e57a9.tar.xz |
GTK3 egg: don't use deprecated gdk_threads_{enter/leave} ()
Diffstat (limited to 'cut-n-paste/smclient')
-rw-r--r-- | cut-n-paste/smclient/eggsmclient-xsmp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cut-n-paste/smclient/eggsmclient-xsmp.c b/cut-n-paste/smclient/eggsmclient-xsmp.c index da85078f..f31acae7 100644 --- a/cut-n-paste/smclient/eggsmclient-xsmp.c +++ b/cut-n-paste/smclient/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) { |