[gtk/resizing-fixes: 32/49] bookmarksmanager: Load bookmarks initially
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/resizing-fixes: 32/49] bookmarksmanager: Load bookmarks initially
- Date: Sat, 8 Aug 2020 21:27:17 +0000 (UTC)
commit 16a71975869a1c1c61a081e8fbdd629c952c520c
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 | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtkbookmarksmanager.c b/gtk/gtkbookmarksmanager.c
index ed1ea063b3..4df373b54d 100644
--- a/gtk/gtkbookmarksmanager.c
+++ b/gtk/gtkbookmarksmanager.c
@@ -294,6 +294,9 @@ _gtk_bookmarks_manager_new (GtkBookmarksChangedFunc changed_func, gpointer chang
manager->bookmarks_monitor_changed_id = g_signal_connect (manager->bookmarks_monitor, "changed",
G_CALLBACK (bookmarks_file_changed), manager);
+
+ g_file_load_contents_async (bookmarks_file, NULL, read_bookmarks_finish, manager);
+
g_object_unref (bookmarks_file);
return manager;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]