diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bookmarks/Makefile.am | 2 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmarks.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/bookmarks/Makefile.am b/src/bookmarks/Makefile.am index 04ecbe356..6df51dd14 100644 --- a/src/bookmarks/Makefile.am +++ b/src/bookmarks/Makefile.am @@ -24,6 +24,8 @@ libephybookmarks_la_SOURCES = \ ephy-bookmark-action.h \ ephy-bookmarks-editor.c \ ephy-bookmarks-editor.h \ + ephy-bookmarks-export.c \ + ephy-bookmarks-export.h \ ephy-bookmarks-import.c \ ephy-bookmarks-import.h \ ephy-bookmark-properties.c \ diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c index 084d8a343..b67e5cd11 100644 --- a/src/bookmarks/ephy-bookmarks.c +++ b/src/bookmarks/ephy-bookmarks.c @@ -24,6 +24,7 @@ #include "ephy-tree-model-node.h" #include "ephy-node-common.h" #include "ephy-toolbars-model.h" +#include "ephy-bookmarks-export.h" #include <string.h> #include <libgnome/gnome-i18n.h> @@ -243,7 +244,7 @@ ephy_bookmarks_init_defaults (EphyBookmarks *eb) ephy_bookmarks_add (eb, default_bookmarks[i].title, default_bookmarks[i].location, default_bookmarks[i].smart_url); - + id = ephy_bookmarks_get_bookmark_id (eb, default_bookmarks[i].location); ephy_toolbars_model_add_bookmark (model, FALSE, id); } @@ -289,6 +290,7 @@ ephy_bookmarks_save (EphyBookmarks *eb) xmlNodePtr root; GPtrArray *children; int i; + char *rdf_file; LOG ("Saving bookmarks") @@ -329,6 +331,13 @@ ephy_bookmarks_save (EphyBookmarks *eb) xmlSaveFormatFile (eb->priv->xml_file, doc, 1); xmlFreeDoc(doc); + + /* Export bookmarks in rdf */ + rdf_file = g_build_filename (ephy_dot_dir (), + "bookmarks.rdf", + NULL); + ephy_bookmarks_export_rdf (eb, rdf_file); + g_free (rdf_file); } static double |