From: Christian Persch Date: Mon, 13 Sep 2010 13:05:18 +0000 (+0200) Subject: [libview] Fix wrong gtk version checks X-Git-Tag: EVINCE_2_91_0~12 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=2631e50f5a02fdb3cbd005304a6dc6a7bb75f334;p=evince.git [libview] Fix wrong gtk version checks It was the wrong way round. --- diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c index 8ce8c5d9..75e2e77e 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 }