Rename zathura_page_cache_add

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2013-10-20 16:06:15 +02:00
parent 5df5357fb0
commit c918c590ee
3 changed files with 13 additions and 6 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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);
/**