diff options
author | Joanmarie Diggs <[email protected]> | 2014-04-25 01:30:30 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-11-27 10:13:51 +0100 |
commit | 91241a1d27d9763df56ff5c6e868f4c37d65fe8b (patch) | |
tree | a19263625c4a24497bfb28a91b013440aa571c93 /libview/ev-view.c | |
parent | e2326c25e1249cf921dd1b878c42d6b51b032bcf (diff) | |
download | atril-91241a1d27d9763df56ff5c6e868f4c37d65fe8b.tar.bz2 atril-91241a1d27d9763df56ff5c6e868f4c37d65fe8b.tar.xz |
libview: Update ATK_STATE_SHOWING when the visible page range changes
https://bugzilla.gnome.org/show_bug.cgi?id=728664
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=110a98a
https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=c4e98b3
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r-- | libview/ev-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c index 9884280b..a7ae53e0 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -811,6 +811,10 @@ view_update_range_and_current_page (EvView *view) MAX(view->start_page - PAGE_CACHE_NUMBER, 0), MIN(view->end_page + PAGE_CACHE_NUMBER, ev_document_get_n_pages (view->document) - 1), view->selection_info.selections); + if (view->accessible) + ev_view_accessible_set_page_range (EV_VIEW_ACCESSIBLE (view->accessible), + view->start_page, + view->end_page); if (ev_pixbuf_cache_get_surface (view->pixbuf_cache, view->current_page)) gtk_widget_queue_draw (GTK_WIDGET (view)); |