diff options
author | Alejandro PiƱeiro <[email protected]> | 2014-04-11 17:08:17 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-11-27 10:13:51 +0100 |
commit | 806e8143f1f4e46a2e46c1ebe8dd337740505685 (patch) | |
tree | 159066f13b00d28ce40e1bfc58d7e408a990644e /libview/ev-page-cache.c | |
parent | ce4c2292416969901af2c55735905fae5b7ed594 (diff) | |
download | atril-806e8143f1f4e46a2e46c1ebe8dd337740505685.tar.bz2 atril-806e8143f1f4e46a2e46c1ebe8dd337740505685.tar.xz |
a11y: ensure text cached when you request an EvPageAccessible
https://bugzilla.gnome.org/show_bug.cgi?id=724965
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=b5fc924
Diffstat (limited to 'libview/ev-page-cache.c')
-rw-r--r-- | libview/ev-page-cache.c | 10 |
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); +} |