[evince/rendering-cleanup] [libview] Fix wrong gtk version checks
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/rendering-cleanup] [libview] Fix wrong gtk version checks
- Date: Mon, 13 Sep 2010 13:07:29 +0000 (UTC)
commit 779da6c5062b981964d887fd8f68d77f5dea7fc2
Author: Christian Persch <chpe gnome org>
Date: Mon Sep 13 15:05:18 2010 +0200
[libview] Fix wrong gtk version checks
It was the wrong way round.
libview/ev-view-presentation.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 8ce8c5d..75e2e77 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -1056,7 +1056,7 @@ ev_view_presentation_expose_event (GtkWidget *widget,
if (ev_transition_animation_ready (pview->animation)) {
ev_view_presentation_get_page_area (pview, &page_area);
-#if GTK_CHECK_VERSION (2, 90, 8)
+#if !GTK_CHECK_VERSION (2, 90, 8)
cr = gdk_cairo_create (gtk_widget_get_window (widget));
#endif
@@ -1069,7 +1069,7 @@ ev_view_presentation_expose_event (GtkWidget *widget,
ev_transition_animation_paint (pview->animation, cr, page_area);
-#if GTK_CHECK_VERSION (2, 90, 8)
+#if !GTK_CHECK_VERSION (2, 90, 8)
cairo_destroy (cr);
#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]