summaryrefslogtreecommitdiff
path: root/libview/ev-timeline.c
diff options
context:
space:
mode:
Diffstat (limited to 'libview/ev-timeline.c')
-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;
}