[epiphany] bookmarks: Create tags when migrating to the new bookmarks system
- From: Iulian Radu <iulianradu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] bookmarks: Create tags when migrating to the new bookmarks system
- Date: Fri, 9 Dec 2016 20:56:07 +0000 (UTC)
commit ae102a5300c59e6f988b503b4853e4d262c409c5
Author: Iulian Radu <iulian radu67 gmail com>
Date: Fri Dec 9 22:50:39 2016 +0200
bookmarks: Create tags when migrating to the new bookmarks system
When bookmarks are migrated, folders are converted into tags and
assigned to bookmarks. Currently, even if the tags information is
there, the tags are not displayed in the popover because they have
not been added to the EphyBookmarksManager as well.
Create tags for the new bookmarks manager when migrating.
src/profile-migrator/ephy-profile-migrator.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/profile-migrator/ephy-profile-migrator.c b/src/profile-migrator/ephy-profile-migrator.c
index 137394e..f4bd2a8 100644
--- a/src/profile-migrator/ephy-profile-migrator.c
+++ b/src/profile-migrator/ephy-profile-migrator.c
@@ -524,8 +524,10 @@ parse_rdf_item (EphyBookmarksManager *manager,
xmlStrEqual (child->ns->prefix, (xmlChar *)"dc") &&
xmlStrEqual (child->name, (xmlChar *)"subject")) {
subject = xmlNodeGetContent (child);
- if (subject)
+ if (subject) {
g_sequence_prepend (tags, subject);
+ ephy_bookmarks_manager_create_tag (manager, (const char *)subject);
+ }
}
child = child->next;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]