Commit 16082497 authored by Moritz Lipp's avatar Moritz Lipp

Update visible pages after opening the file

parent caa27db9
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment