summaryrefslogtreecommitdiff
path: root/src
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 /src
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 'src')
-rw-r--r--src/caja-pathbar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/caja-pathbar.c b/src/caja-pathbar.c
index 667046e6..8b8cd1ef 100644
--- a/src/caja-pathbar.c
+++ b/src/caja-pathbar.c
@@ -1206,7 +1206,9 @@ caja_path_bar_scroll_timeout (CajaPathBar *path_bar)
{
gboolean retval = FALSE;
+#if !GTK_CHECK_VERSION (3, 0, 0)
GDK_THREADS_ENTER ();
+#endif
if (path_bar->timer)
{
@@ -1236,8 +1238,9 @@ caja_path_bar_scroll_timeout (CajaPathBar *path_bar)
}
}
-
+#if !GTK_CHECK_VERSION (3, 0, 0)
GDK_THREADS_LEAVE ();
+#endif
return retval;
}