aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-01-09 21:03:55 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-01-09 21:03:55 +0800
commit7d278d4b5910d1adc5e075882aa559e8da407c4a (patch)
tree44d8ca418545e23c408b413548c5f8f710cdd6de /src/bookmarks/ephy-bookmarks.c
parent05dc477f8e2a3943fd5eea73ae137cbcd544ce31 (diff)
downloadgsoc2013-epiphany-7d278d4b5910d1adc5e075882aa559e8da407c4a.tar
gsoc2013-epiphany-7d278d4b5910d1adc5e075882aa559e8da407c4a.tar.gz
gsoc2013-epiphany-7d278d4b5910d1adc5e075882aa559e8da407c4a.tar.bz2
gsoc2013-epiphany-7d278d4b5910d1adc5e075882aa559e8da407c4a.tar.lz
gsoc2013-epiphany-7d278d4b5910d1adc5e075882aa559e8da407c4a.tar.xz
gsoc2013-epiphany-7d278d4b5910d1adc5e075882aa559e8da407c4a.tar.zst
gsoc2013-epiphany-7d278d4b5910d1adc5e075882aa559e8da407c4a.zip
Extend ephy node to allow some reversed ids. Use it for base
2003-01-09 Marco Pesenti Gritti <marco@it.gnome.org> * 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.
Diffstat (limited to 'src/bookmarks/ephy-bookmarks.c')
-rw-r--r--src/bookmarks/ephy-bookmarks.c10
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,