[devhelp] Window: port to DhBookList



commit 0029323a241ca33fe3b9bc884cb32334f4bb15e2
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Apr 30 15:48:01 2018 +0200

    Window: port to DhBookList
    
    DhWindow is still part of the application, so it's fine to use the
    default DhBookList.

 src/dh-window.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index 31bd424..71f531b 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -964,7 +964,7 @@ find_equivalent_local_uri (const gchar *uri)
         guint n_components;
         const gchar *book_id;
         const gchar *relative_url;
-        DhBookManager *book_manager;
+        DhBookList *book_list;
         GList *books;
         GList *book_node;
         gchar *local_uri = NULL;
@@ -989,8 +989,8 @@ find_equivalent_local_uri (const gchar *uri)
                 goto out;
         }
 
-        book_manager = dh_book_manager_get_singleton ();
-        books = dh_book_manager_get_books (book_manager);
+        book_list = dh_book_list_get_default ();
+        books = dh_book_list_get_books (book_list);
 
         for (book_node = books; book_node != NULL; book_node = book_node->next) {
                 DhBook *cur_book = DH_BOOK (book_node->data);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]