summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-15 13:36:52 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-15 13:36:52 +0100
commit782f9380134734731a1547970d4bc9ab7b57410e (patch)
tree7eb70094291eba25b2c441871fcd87b8c3cfb6bb /eel
parent8187e18cc3044d8a9e9da1bb959b543a2afcb980 (diff)
downloadcaja-782f9380134734731a1547970d4bc9ab7b57410e.tar.bz2
caja-782f9380134734731a1547970d4bc9ab7b57410e.tar.xz
GTK3: don't use deprecated gdk_threads_{enter/leave} ()
Since we don't ever call gdk_threads_init()
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-canvas.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
index f1f7068d..55d983c8 100644
--- a/eel/eel-canvas.c
+++ b/eel/eel-canvas.c
@@ -3269,7 +3269,9 @@ idle_handler (gpointer data)
{
EelCanvas *canvas;
+#if !GTK_CHECK_VERSION (3, 0, 0)
GDK_THREADS_ENTER ();
+#endif
canvas = EEL_CANVAS (data);
do_update (canvas);
@@ -3277,7 +3279,9 @@ idle_handler (gpointer data)
/* Reset idle id */
canvas->idle_id = 0;
+#if !GTK_CHECK_VERSION (3, 0, 0)
GDK_THREADS_LEAVE ();
+#endif
return FALSE;
}