Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
c918c590
Commit
c918c590
authored
Oct 20, 2013
by
Sebastian Ramacher
Browse files
Rename zathura_page_cache_add
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
5df5357f
Changes
3
Hide whitespace changes
Inline
Side-by-side
callbacks.c
View file @
c918c590
...
...
@@ -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
)
{
...
...
render.c
View file @
c918c590
...
...
@@ -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
)
{
...
...
render.h
View file @
c918c590
...
...
@@ -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
);
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment