[gtk/matthiasc/for-master: 4/6] bookmarksmanager: Load bookmarks initially




commit 19c6ef38feba24c645a0deb9b7f5a1b929bb97d1
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Aug 8 13:33:19 2020 -0400

    bookmarksmanager: Load bookmarks initially
    
    This was broken in 1e6171a4a700b0c16b2f.

 gtk/gtkbookmarksmanager.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkbookmarksmanager.c b/gtk/gtkbookmarksmanager.c
index ed1ea063b3..d873de1519 100644
--- a/gtk/gtkbookmarksmanager.c
+++ b/gtk/gtkbookmarksmanager.c
@@ -280,6 +280,8 @@ _gtk_bookmarks_manager_new (GtkBookmarksChangedFunc changed_func, gpointer chang
 
       g_object_unref (legacy_bookmarks_file);
     }
+  else
+    g_file_load_contents_async (bookmarks_file, NULL, read_bookmarks_finish, manager);
 
   error = NULL;
   manager->bookmarks_monitor = g_file_monitor_file (bookmarks_file,


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