mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 17:03:47 +01:00
Rename zathura_page_cache_add
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
5df5357fb0
commit
c918c590ee
@ -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(¢er, &page_rect, NULL) == TRUE) {
|
||||
|
3
render.c
3
render.c
@ -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) {
|
||||
|
14
render.h
14
render.h
@ -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);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user