From 2c9942121667f5ec79b2aa1cfe706bac2ab06201 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 22 Jun 2016 12:01:01 +0200 Subject: GTK3 ev-timeline: don't use deprecated gdk_threads_{enter/leave} () --- libview/ev-timeline.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libview') diff --git a/libview/ev-timeline.c b/libview/ev-timeline.c index 4f918ea3..70644c22 100644 --- a/libview/ev-timeline.c +++ b/libview/ev-timeline.c @@ -21,6 +21,7 @@ #include #include +#include #include #include "ev-timeline.h" @@ -150,7 +151,9 @@ ev_timeline_run_frame (EvTimeline *timeline) gdouble progress; guint elapsed_time; +#if !GTK_CHECK_VERSION (3, 0, 0) gdk_threads_enter(); +#endif priv = EV_TIMELINE_GET_PRIV (timeline); @@ -174,7 +177,9 @@ ev_timeline_run_frame (EvTimeline *timeline) } } +#if !GTK_CHECK_VERSION (3, 0, 0) gdk_threads_leave(); +#endif return TRUE; } -- cgit v1.2.1