aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks-export.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-02-14 07:04:35 +0800
committerChristian Persch <chpe@src.gnome.org>2006-02-14 07:04:35 +0800
commit440479d703bbe23fcac180e0ab3f7e611de3dc54 (patch)
tree0549040736aa8d7560acf6c8eaa9d15b0920fefb /src/bookmarks/ephy-bookmarks-export.c
parent8701bc08a5263c0e357b7bdddc0f9f8facc9cce8 (diff)
downloadgsoc2013-epiphany-440479d703bbe23fcac180e0ab3f7e611de3dc54.tar
gsoc2013-epiphany-440479d703bbe23fcac180e0ab3f7e611de3dc54.tar.gz
gsoc2013-epiphany-440479d703bbe23fcac180e0ab3f7e611de3dc54.tar.bz2
gsoc2013-epiphany-440479d703bbe23fcac180e0ab3f7e611de3dc54.tar.lz
gsoc2013-epiphany-440479d703bbe23fcac180e0ab3f7e611de3dc54.tar.xz
gsoc2013-epiphany-440479d703bbe23fcac180e0ab3f7e611de3dc54.tar.zst
gsoc2013-epiphany-440479d703bbe23fcac180e0ab3f7e611de3dc54.zip
Don't export the local bookmarks.
2006-02-14 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmarks-export.c: (write_rdf): Don't export the local bookmarks. * src/bookmarks/ephy-bookmarks-menu.c: (append_menu): Remove "name" attribute in the UI string, since it's set to same value as "action". * src/bookmarks/ephy-open-tabs-action.c: (node_added_cb): Fix untranslated string!
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-export.c')
-rw-r--r--src/bookmarks/ephy-bookmarks-export.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/bookmarks/ephy-bookmarks-export.c b/src/bookmarks/ephy-bookmarks-export.c
index e08965be3..ba2d78a48 100644
--- a/src/bookmarks/ephy-bookmarks-export.c
+++ b/src/bookmarks/ephy-bookmarks-export.c
@@ -94,6 +94,9 @@ write_rdf (EphyBookmarks *bookmarks,
GPtrArray *children;
char *file_uri;
int i, ret;
+#ifdef ENABLE_ZEROCONF
+ EphyNode *local;
+#endif
START_PROFILER ("Writing RDF")
@@ -168,6 +171,9 @@ write_rdf (EphyBookmarks *bookmarks,
bmks = ephy_bookmarks_get_bookmarks (bookmarks);
topics = ephy_bookmarks_get_keywords (bookmarks);
smart_bmks = ephy_bookmarks_get_smart_bookmarks (bookmarks);
+#ifdef ENABLE_ZEROCONF
+ local = ephy_bookmarks_get_local (bookmarks);
+#endif
children = ephy_node_get_children (bmks);
for (i=0; i < children->len; i++)
@@ -179,6 +185,11 @@ write_rdf (EphyBookmarks *bookmarks,
kid = g_ptr_array_index (children, i);
+#ifdef ENABLE_ZEROCONF
+ /* Don't export the local bookmarks */
+ if (ephy_node_has_child (local, kid)) continue;
+#endif
+
ret = xmlTextWriterStartElementNS
(writer,
(xmlChar *) "rdf",
@@ -239,6 +250,11 @@ write_rdf (EphyBookmarks *bookmarks,
kid = g_ptr_array_index (children, i);
+#ifdef ENABLE_ZEROCONF
+ /* Don't export the local bookmarks */
+ if (ephy_node_has_child (local, kid)) continue;
+#endif
+
smart_url = ephy_node_has_child (smart_bmks, kid);
url = ephy_node_get_property_string
(kid, EPHY_NODE_BMK_PROP_LOCATION);