mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:46:01 +01:00
added function to check whether current jump is first or last
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
1c3274bbd6
commit
d05ecc3043
2 changed files with 28 additions and 0 deletions
12
zathura.c
12
zathura.c
|
@ -1122,6 +1122,18 @@ position_set_delayed(zathura_t* zathura, double position_x, double position_y)
|
|||
}
|
||||
|
||||
|
||||
bool
|
||||
zathura_jumplist_has_previous(zathura_t* zathura)
|
||||
{
|
||||
return girara_list_iterator_has_previous(zathura->jumplist.cur);
|
||||
}
|
||||
|
||||
bool
|
||||
zathura_jumplist_has_has_next(zathura_t* zathura)
|
||||
{
|
||||
return girara_list_iterator_has_next(zathura->jumplist.cur);
|
||||
}
|
||||
|
||||
zathura_jump_t*
|
||||
zathura_jumplist_current(zathura_t* zathura)
|
||||
{
|
||||
|
|
16
zathura.h
16
zathura.h
|
@ -334,6 +334,22 @@ void page_widget_set_mode(zathura_t* zathura, unsigned int pages_per_row, unsign
|
|||
*/
|
||||
void statusbar_page_number_update(zathura_t* zathura);
|
||||
|
||||
/**
|
||||
* Checks whether current jump has a previous jump
|
||||
*
|
||||
* @param zathura The zathura session
|
||||
* @return true if current jump has a previous jump
|
||||
*/
|
||||
bool zathura_jumplist_has_previous(zathura_t* zathura);
|
||||
|
||||
/**
|
||||
* Checks whether current jump has a next jump
|
||||
*
|
||||
* @param zathura The zathura session
|
||||
* @return true if current jump has a next jump
|
||||
*/
|
||||
bool zathura_jumplist_has_next(zathura_t* zathura);
|
||||
|
||||
/**
|
||||
* Return current jump in the jumplist
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue