summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-22 12:01:01 +0200
committerraveit65 <[email protected]>2016-06-22 12:01:01 +0200
commit2c9942121667f5ec79b2aa1cfe706bac2ab06201 (patch)
treef8da4e80f275c50d1051b179fd37549692a0e1b5
parenta0292d6425b8413fe465285c78a670e6f09d72ec (diff)
downloadatril-2c9942121667f5ec79b2aa1cfe706bac2ab06201.tar.bz2
atril-2c9942121667f5ec79b2aa1cfe706bac2ab06201.tar.xz
GTK3 ev-timeline: don't use deprecated gdk_threads_{enter/leave} ()
-rw-r--r--libview/ev-timeline.c5
1 files changed, 5 insertions, 0 deletions
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 <glib.h>
#include <math.h>
+#include <gtk/gtk.h>
#include <gdk/gdk.h>
#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;
}