mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 23:54:56 +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)
|
update_visible_pages(zathura_t* zathura)
|
||||||
{
|
{
|
||||||
const unsigned int number_of_pages = zathura_document_get_number_of_pages(zathura->document);
|
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
|
void
|
||||||
cb_page_widget_link(ZathuraPage* page, void* data);
|
cb_page_widget_link(ZathuraPage* page, void* data);
|
||||||
|
|
||||||
|
void
|
||||||
|
update_visible_pages(zathura_t* zathura);
|
||||||
|
|
||||||
|
|
||||||
#endif // CALLBACKS_H
|
#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);
|
position_set(zathura, file_info.position_x, file_info.position_y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
update_visible_pages(zathura);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
error_free:
|
error_free:
|
||||||
|
|
Loading…
Reference in a new issue