From cf3fd3510b73f43fc7b31b3a91fc5b7abda348a2 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sat, 3 Sep 2011 14:21:36 +0200 Subject: [PATCH] load bookmarks in document_open --- bookmarks.h | 8 -------- zathura.c | 5 +++++ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/bookmarks.h b/bookmarks.h index bb0d252..156375a 100644 --- a/bookmarks.h +++ b/bookmarks.h @@ -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 diff --git a/zathura.c b/zathura.c index 43fd50a..37541ad 100644 --- a/zathura.c +++ b/zathura.c @@ -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: