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.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libview/ev-page-cache.c b/libview/ev-page-cache.c
index b5be8bac..3aee0453 100644
--- a/libview/ev-page-cache.c
+++ b/libview/ev-page-cache.c
@@ -664,3 +664,17 @@ ev_page_cache_ensure_page (EvPageCache *cache,
ev_page_cache_schedule_job_if_needed (cache, page);
}
+
+gboolean
+ev_page_cache_is_page_cached (EvPageCache *cache,
+ gint page)
+{
+ EvPageCacheData *data;
+
+ g_return_val_if_fail (EV_IS_PAGE_CACHE (cache), FALSE);
+ g_return_val_if_fail (page >= 0 && page < cache->n_pages, FALSE);
+
+ data = &cache->page_list[page];
+
+ return data->done;
+}