Commit c918c590 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Rename zathura_page_cache_add

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 5df5357f
......@@ -98,7 +98,7 @@ cb_view_vadjustment_value_changed(GtkAdjustment* GIRARA_UNUSED(adjustment), gpoi
if (zathura_page_get_visibility(page) == false) {
zathura_page_set_visibility(page, true);
zathura_page_widget_update_view_time(zathura_page_widget);
zathura_page_cache_add(zathura->sync.render_thread, zathura_page_get_index(page));
zathura_renderer_page_cache_add(zathura->sync.render_thread, zathura_page_get_index(page));
}
if (zathura->global.update_page_number == true && updated == false
&& gdk_rectangle_intersect(&center, &page_rect, NULL) == TRUE) {
......
......@@ -828,7 +828,8 @@ page_cache_invalidate_all(ZathuraRenderer* renderer)
}
void
zathura_page_cache_add(ZathuraRenderer* renderer, unsigned int page_index)
zathura_renderer_page_cache_add(ZathuraRenderer* renderer,
unsigned int page_index)
{
g_return_if_fail(ZATHURA_IS_RENDERER(renderer));
if (page_cache_is_cached(renderer, page_index) == true) {
......
......@@ -117,12 +117,12 @@ void zathura_renderer_lock(ZathuraRenderer* renderer);
void zathura_renderer_unlock(ZathuraRenderer* renderer);
/**
* Add a page to the page cache
* Add a page to the page cache.
*
* @param zathura The zathura session
* @param page_index The index of the page to be cached
* @param renderer renderer object.
* @param page_index The index of the page to be cached.
*/
void zathura_page_cache_add(ZathuraRenderer* renderer,
void zathura_renderer_page_cache_add(ZathuraRenderer* renderer,
unsigned int page_index);
......@@ -186,6 +186,12 @@ void zathura_render_request(ZathuraRenderRequest* request,
*/
void zathura_render_request_abort(ZathuraRenderRequest* request);
/**
* Update the time the page associated to the render request has been viewed the
* last time.
*
* @param request request that should be updated
*/
void zathura_render_request_update_view_time(ZathuraRenderRequest* request);
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment