summaryrefslogtreecommitdiff
path: root/libview/ev-view.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2014-08-15 13:04:53 +0200
committerraveit65 <[email protected]>2017-08-28 16:04:01 +0200
commitc284fdd869066085c756f617ac6787abe06769c6 (patch)
tree468921bf6298c0810cd3b8a4d4bc4d3b55d87d3d /libview/ev-view.c
parent3ada385fead55fa8f94afa128558348d8530dee6 (diff)
downloadatril-c284fdd869066085c756f617ac6787abe06769c6.tar.bz2
atril-c284fdd869066085c756f617ac6787abe06769c6.tar.xz
page-cache: Add flags parameter to ev_page_cache_mark_dirty()
This allows to specify what is dirty so that it's freed before being cached again. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=20c6b3b
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r--libview/ev-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 6f7f2470..f409a2e5 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3030,7 +3030,7 @@ ev_view_create_annotation (EvView *view,
/* If the page didn't have annots, mark the cache as dirty */
if (!ev_page_cache_get_annot_mapping (view->page_cache, view->current_page))
- ev_page_cache_mark_dirty (view->page_cache, view->current_page);
+ ev_page_cache_mark_dirty (view->page_cache, view->current_page, EV_PAGE_DATA_INCLUDE_ANNOTS);
if (EV_IS_ANNOTATION_MARKUP (annot)) {
GtkWindow *parent;
@@ -3121,7 +3121,7 @@ ev_view_remove_annotation (EvView *view,
annot);
ev_document_doc_mutex_unlock ();
- ev_page_cache_mark_dirty (view->page_cache, page);
+ ev_page_cache_mark_dirty (view->page_cache, page, EV_PAGE_DATA_INCLUDE_ANNOTS);
/* FIXME: only redraw the annot area */
ev_view_reload_page (view, page, NULL);