diff options
Diffstat (limited to 'src/bookmarks/ephy-bookmarks.c')
-rw-r--r-- | src/bookmarks/ephy-bookmarks.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c index 7110a2cd8..1dea94539 100644 --- a/src/bookmarks/ephy-bookmarks.c +++ b/src/bookmarks/ephy-bookmarks.c @@ -47,6 +47,12 @@ struct EphyBookmarksPrivate GStaticRWLock *keywords_hash_lock; }; +enum +{ + BOOKMARKS_NODE_ID = 0, + KEYWORDS_NODE_ID = 1 +}; + static void ephy_bookmarks_class_init (EphyBookmarksClass *klass); static void @@ -517,7 +523,7 @@ ephy_bookmarks_init (EphyBookmarks *eb) g_static_rw_lock_init (eb->priv->favorites_hash_lock); /* Bookmarks */ - eb->priv->bookmarks = ephy_node_new (); + eb->priv->bookmarks = ephy_node_new_with_id (BOOKMARKS_NODE_ID); ephy_node_ref (eb->priv->bookmarks); g_value_init (&value, G_TYPE_STRING); g_value_set_string (&value, _("All")); @@ -537,7 +543,7 @@ ephy_bookmarks_init (EphyBookmarks *eb) 0); /* Keywords */ - eb->priv->keywords = ephy_node_new (); + eb->priv->keywords = ephy_node_new_with_id (KEYWORDS_NODE_ID); ephy_node_ref (eb->priv->keywords); ephy_node_add_child (eb->priv->keywords, |