diff options
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-export.c')
-rw-r--r-- | src/bookmarks/ephy-bookmarks-export.c | 16 |
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); |