mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 16:44:55 +01:00
Update visible pages after opening the file
This commit is contained in:
parent
caa27db95d
commit
1608249709
3 changed files with 6 additions and 1 deletions
|
@ -51,7 +51,7 @@ cb_buffer_changed(girara_session_t* session)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
update_visible_pages(zathura_t* zathura)
|
||||
{
|
||||
const unsigned int number_of_pages = zathura_document_get_number_of_pages(zathura->document);
|
||||
|
|
|
@ -206,5 +206,8 @@ void cb_page_widget_scaled_button_release(ZathuraPage* page,
|
|||
void
|
||||
cb_page_widget_link(ZathuraPage* page, void* data);
|
||||
|
||||
void
|
||||
update_visible_pages(zathura_t* zathura);
|
||||
|
||||
|
||||
#endif // CALLBACKS_H
|
||||
|
|
|
@ -871,6 +871,8 @@ document_open(zathura_t* zathura, const char* path, const char* password,
|
|||
position_set(zathura, file_info.position_x, file_info.position_y);
|
||||
}
|
||||
|
||||
update_visible_pages(zathura);
|
||||
|
||||
return true;
|
||||
|
||||
error_free:
|
||||
|
|
Loading…
Reference in a new issue