summaryrefslogtreecommitdiff
path: root/libview/ev-page-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'libview/ev-page-cache.c')
-rw-r--r--libview/ev-page-cache.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libview/ev-page-cache.c b/libview/ev-page-cache.c
index 827cbaf3..b5be8bac 100644
--- a/libview/ev-page-cache.c
+++ b/libview/ev-page-cache.c
@@ -654,3 +654,13 @@ ev_page_cache_get_text_log_attrs (EvPageCache *cache,
return FALSE;
}
+
+void
+ev_page_cache_ensure_page (EvPageCache *cache,
+ gint page)
+{
+ g_return_if_fail (EV_IS_PAGE_CACHE (cache));
+ g_return_if_fail (page >= 0 && page < cache->n_pages);
+
+ ev_page_cache_schedule_job_if_needed (cache, page);
+}