Commit cf3fd351 authored by Sebastian Ramacher's avatar Sebastian Ramacher

load bookmarks in document_open

parent 390061c8
......@@ -53,12 +53,4 @@ void zathura_bookmark_free(zathura_bookmark_t* bookmark);
*/
bool zathura_bookmarks_load(zathura_t* zathura, const gchar* file);
/**
* Save bookmarks for a specific file.
* @param zathura The zathura instance.
* @param file The file.
* @param true on success, false otherwise
*/
bool zathura_bookmarks_save(zathura_t* zathura, const gchar* file);
#endif // BOOKMARKS_H
......@@ -320,6 +320,11 @@ document_open(zathura_t* zathura, const char* path, const char* password)
gtk_widget_realize(page->event_box);
}
/* bookmarks */
if (!zathura_bookmarks_load(zathura, zathura->document->file_path)) {
girara_warning("Failed to load bookmarks for %s.\n", zathura->document->file_path);
}
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