]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Fix wrong gtk version checks
authorChristian Persch <chpe@gnome.org>
Mon, 13 Sep 2010 13:05:18 +0000 (15:05 +0200)
committerChristian Persch <chpe@gnome.org>
Sun, 26 Sep 2010 14:44:39 +0000 (16:44 +0200)
It was the wrong way round.

libview/ev-view-presentation.c

index 8ce8c5d9a7950cc29009e7cf8719b5380ae781f6..75e2e77e5f79fbb4a3f050165ed6b14ff728dbc5 100644 (file)
@@ -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
                }