Update visible pages after opening the file

This commit is contained in:
Moritz Lipp 2014-09-04 00:42:46 +02:00
parent caa27db95d
commit 1608249709
3 changed files with 6 additions and 1 deletions

View file

@ -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);

View file

@ -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

View file

@ -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: