X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=shell%2Fev-view.c;h=1a76442a910fb19c53c59407d084f80f6596d372;hb=3937a33dfda49381aae84fe3f37f08f2dd9244c0;hp=3b7a60dd30a32eea400bb41bb7ca30d884dd907c;hpb=d1b42341039d4e26cf299c2fc50d36cd18760011;p=evince.git diff --git a/shell/ev-view.c b/shell/ev-view.c index 3b7a60dd..1a76442a 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -2483,7 +2483,7 @@ ev_view_expose_event (GtkWidget *widget, cairo_t *cr; gint i; - if (view->animation) { + if (view->animation && ev_transition_animation_ready (view->animation)) { GdkRectangle page_area; GtkBorder border; @@ -3739,9 +3739,12 @@ draw_one_page (EvView *view, page_surface = ev_pixbuf_cache_get_surface (view->pixbuf_cache, page); if (!page_surface) { - draw_loading_text (view, - &real_page_area, - expose_area); + if (!view->presentation) { + draw_loading_text (view, + &real_page_area, + expose_area); + } + *page_ready = FALSE; return; @@ -5330,18 +5333,30 @@ ev_view_find_previous (EvView *view) } } -void ev_view_search_changed (EvView *view) +void +ev_view_search_changed (EvView *view) { /* search string has changed, focus on new search result */ view->jump_to_find_result = TRUE; } -void ev_view_set_highlight_search (EvView *view, gboolean value) +void +ev_view_set_highlight_search (EvView *view, gboolean value) { view->highlight_find_results = value; gtk_widget_queue_draw (GTK_WIDGET (view)); } +void +ev_view_find_cancel (EvView *view) +{ + if (EV_IS_DOCUMENT_FIND (view->document)) { + EvDocumentFind *find = EV_DOCUMENT_FIND (view->document); + + ev_document_find_cancel (find); + } +} + /*** Selections ***/ /* compute_new_selection_rect/text calculates the area currently selected by