From 7d278d4b5910d1adc5e075882aa559e8da407c4a Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 9 Jan 2003 13:03:55 +0000 Subject: Extend ephy node to allow some reversed ids. Use it for base 2003-01-09 Marco Pesenti Gritti * TODO: * embed/ephy-history.c: (ephy_history_init): * embed/mozilla/FilePicker.cpp: * lib/ephy-node.c: (ephy_node_new_with_id), (ephy_node_system_init): * lib/ephy-node.h: * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init): Extend ephy node to allow some reversed ids. Use it for base bookmarks/history elements, should fix bookmarks lossage. Fix filepicker initialization. --- embed/ephy-history.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'embed/ephy-history.c') diff --git a/embed/ephy-history.c b/embed/ephy-history.c index 84875f721..db6f885d2 100644 --- a/embed/ephy-history.c +++ b/embed/ephy-history.c @@ -57,6 +57,12 @@ enum LAST_SIGNAL }; +enum +{ + HOSTS_NODE_ID = 5, + PAGES_NODE_ID = 6 +}; + static void ephy_history_class_init (EphyHistoryClass *klass); static void @@ -388,8 +394,8 @@ ephy_history_init (EphyHistory *eb) eb->priv->hosts_hash_lock = g_new0 (GStaticRWLock, 1); g_static_rw_lock_init (eb->priv->hosts_hash_lock); - /* Bookmarks */ - eb->priv->pages = ephy_node_new (); + /* Pages */ + eb->priv->pages = ephy_node_new_with_id (PAGES_NODE_ID); ephy_node_ref (eb->priv->pages); g_signal_connect_object (G_OBJECT (eb->priv->pages), "child_added", @@ -403,7 +409,7 @@ ephy_history_init (EphyHistory *eb) 0); /* Hosts */ - eb->priv->hosts = ephy_node_new (); + eb->priv->hosts = ephy_node_new_with_id (HOSTS_NODE_ID); ephy_node_ref (eb->priv->hosts); g_signal_connect_object (G_OBJECT (eb->priv->hosts), "child_added", -- cgit v1.2.3