[folks] eds: remove urls
- From: Patrick Ohly <pohly src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] eds: remove urls
- Date: Mon, 26 Nov 2012 07:42:02 +0000 (UTC)
commit 0338f137af249ffdf4e7a28630a95e0e21afcaf4
Author: Patrick Ohly <patrick ohly intel com>
Date: Fri Nov 23 10:08:31 2012 +0100
eds: remove urls
URLs which are represented by EContact fields cannot be removed. When
setting UrlFieldDetails, the _set_contact_urls method must remove
X-EVOLUTION-BLOG-URL, X-EVOLUTION-VIDEO-URL, FBURL and URL in addition
to X-URIS, which was already removed before setting the new set of
values.
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=688923
NEWS | 1 +
backends/eds/lib/edsf-persona-store.vala | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index a95b303..e12228b 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,7 @@ Bugs fixed:
â Bug 686673 â Build error: libsocialweb backend doesn't implement new Backend
functions
â Bug 688834 â getting properties creates data structures over and over again
+â Bug 688923 â remove URLs (blog, free/busy, video, home page)
API changes:
â Add Backend.enable_persona_store and disable_persona_store.
diff --git a/backends/eds/lib/edsf-persona-store.vala b/backends/eds/lib/edsf-persona-store.vala
index bc4e4d9..ee21d06 100644
--- a/backends/eds/lib/edsf-persona-store.vala
+++ b/backends/eds/lib/edsf-persona-store.vala
@@ -1469,6 +1469,10 @@ public class Edsf.PersonaStore : Folks.PersonaStore
{
var vcard = (E.VCard) contact;
vcard.remove_attributes (null, "X-URIS");
+ contact.set (ContactField.HOMEPAGE_URL, null);
+ contact.set (ContactField.VIDEO_URL, null);
+ contact.set (ContactField.BLOG_URL, null);
+ contact.set (ContactField.FREEBUSY_URL, null);
foreach (var u in urls)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]