[folks] url-details: s/HOMEPAGE/HOME_PAGE/
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] url-details: s/HOMEPAGE/HOME_PAGE/
- Date: Sun, 18 Sep 2011 18:02:00 +0000 (UTC)
commit 684956de8220262d853280e6229e8b09b5709bac
Author: Philip Withnall <philip tecnocode co uk>
Date: Sun Sep 18 19:01:31 2011 +0100
url-details: s/HOMEPAGE/HOME_PAGE/
Quick, before this gets released and frozen!
NEWS | 2 +-
backends/eds/lib/edsf-persona.vala | 2 +-
backends/tracker/lib/trf-persona-store.vala | 4 ++--
backends/tracker/lib/trf-persona.vala | 2 +-
folks/url-details.vala | 2 +-
tests/eds/set-urls.vala | 2 +-
tests/tracker/set-urls.vala | 12 ++++++------
7 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/NEWS b/NEWS
index ae5d07e..fff5174 100644
--- a/NEWS
+++ b/NEWS
@@ -39,7 +39,7 @@ API changes:
* Add Folks.PersonaStore.user_set_default
* Add AbstractFieldDetails.PARAM_TYPE, .PARAM_TYPE_HOME, .PARAM_TYPE_WORK,
.PARAM_TYPE_OTHER
-* Add UrlFieldDetails.PARAM_TYPE_HOMEPAGE, .PARAM_TYPE_BLOG,
+* Add UrlFieldDetails.PARAM_TYPE_HOME_PAGE, .PARAM_TYPE_BLOG,
.PARAM_TYPE_PROFILE, .PARAM_TYPE_FTP
Overview of changes from libfolks 0.6.2 to libfolks 0.6.2.1
diff --git a/backends/eds/lib/edsf-persona.vala b/backends/eds/lib/edsf-persona.vala
index c7c4587..3101b2f 100644
--- a/backends/eds/lib/edsf-persona.vala
+++ b/backends/eds/lib/edsf-persona.vala
@@ -75,7 +75,7 @@ public class Edsf.Persona : Folks.Persona,
internal static const UrlTypeMapping[] _url_properties =
{
- { "homepage_url", UrlFieldDetails.PARAM_TYPE_HOMEPAGE },
+ { "homepage_url", UrlFieldDetails.PARAM_TYPE_HOME_PAGE },
{ "blog_url", UrlFieldDetails.PARAM_TYPE_BLOG },
{ "fburl", "x-free-busy" },
{ "video_url", "x-video" }
diff --git a/backends/tracker/lib/trf-persona-store.vala b/backends/tracker/lib/trf-persona-store.vala
index 7c08ed6..bf98f37 100644
--- a/backends/tracker/lib/trf-persona-store.vala
+++ b/backends/tracker/lib/trf-persona-store.vala
@@ -1542,7 +1542,7 @@ public class Trf.PersonaStore : Folks.PersonaStore
if (affl_info.website != null)
p._add_url (affl_info.website,
affl_info.affl_tracker_id,
- UrlFieldDetails.PARAM_TYPE_HOMEPAGE);
+ UrlFieldDetails.PARAM_TYPE_HOME_PAGE);
if (affl_info.blog != null)
p._add_url (affl_info.blog,
@@ -2451,7 +2451,7 @@ public class Trf.PersonaStore : Folks.PersonaStore
related_connection = Trf.OntologyDefs.NCO_BLOG;
}
else if (type_p != null &&
- type_p.contains (UrlFieldDetails.PARAM_TYPE_HOMEPAGE))
+ type_p.contains (UrlFieldDetails.PARAM_TYPE_HOME_PAGE))
{
related_connection = Trf.OntologyDefs.NCO_WEBSITE;
}
diff --git a/backends/tracker/lib/trf-persona.vala b/backends/tracker/lib/trf-persona.vala
index 3c0ec19..8639bc7 100644
--- a/backends/tracker/lib/trf-persona.vala
+++ b/backends/tracker/lib/trf-persona.vala
@@ -1358,7 +1358,7 @@ public class Trf.Persona : Folks.Persona,
type = UrlFieldDetails.PARAM_TYPE_BLOG;
break;
case Trf.UrlsFields.WEBSITE:
- type = UrlFieldDetails.PARAM_TYPE_HOMEPAGE;
+ type = UrlFieldDetails.PARAM_TYPE_HOME_PAGE;
break;
case Trf.UrlsFields.URL:
/* No specific type is appropriate. */
diff --git a/folks/url-details.vala b/folks/url-details.vala
index a52873b..d6a5d96 100644
--- a/folks/url-details.vala
+++ b/folks/url-details.vala
@@ -41,7 +41,7 @@ public class Folks.UrlFieldDetails : AbstractFieldDetails<string>
*
* @since UNRELEASED
*/
- public static const string PARAM_TYPE_HOMEPAGE = "x-home-page";
+ public static const string PARAM_TYPE_HOME_PAGE = "x-home-page";
/**
* Parameter value for URLs for the contact's personal or professional blog.
diff --git a/tests/eds/set-urls.vala b/tests/eds/set-urls.vala
index f8d396d..ae100ab 100644
--- a/tests/eds/set-urls.vala
+++ b/tests/eds/set-urls.vala
@@ -138,7 +138,7 @@ public class SetUrlsTests : Folks.TestCase
var p2 = new UrlFieldDetails (this._url_extra_2);
urls.add (p2);
var p3 = new UrlFieldDetails (this._url_home);
- p3.set_parameter(p3.PARAM_TYPE, p3.PARAM_TYPE_HOMEPAGE);
+ p3.set_parameter(p3.PARAM_TYPE, p3.PARAM_TYPE_HOME_PAGE);
urls.add (p3);
var p4 = new UrlFieldDetails (this._url_blog);
p4.set_parameter(p3.PARAM_TYPE, p3.PARAM_TYPE_BLOG);
diff --git a/tests/tracker/set-urls.vala b/tests/tracker/set-urls.vala
index fdaa378..1ca7369 100644
--- a/tests/tracker/set-urls.vala
+++ b/tests/tracker/set-urls.vala
@@ -56,7 +56,7 @@ public class SetURLsTests : Folks.TestCase
this._urls = new Gee.HashMap<string, string> ();
this._urls.set (UrlFieldDetails.PARAM_TYPE_BLOG,
"http://one.example.org");
- this._urls.set (UrlFieldDetails.PARAM_TYPE_HOMEPAGE,
+ this._urls.set (UrlFieldDetails.PARAM_TYPE_HOME_PAGE,
"http://two.example.org");
this._urls.set (AbstractFieldDetails.PARAM_TYPE_OTHER,
"http://three.example.org");
@@ -120,8 +120,8 @@ public class SetURLsTests : Folks.TestCase
p1.set_parameter (p1.PARAM_TYPE, p1.PARAM_TYPE_BLOG);
url_fds.add (p1);
var p2 = new UrlFieldDetails (
- this._urls.get (UrlFieldDetails.PARAM_TYPE_HOMEPAGE));
- p2.set_parameter (p1.PARAM_TYPE, p1.PARAM_TYPE_HOMEPAGE);
+ this._urls.get (UrlFieldDetails.PARAM_TYPE_HOME_PAGE));
+ p2.set_parameter (p1.PARAM_TYPE, p1.PARAM_TYPE_HOME_PAGE);
url_fds.add (p2);
var p3 = new UrlFieldDetails (
this._urls.get (AbstractFieldDetails.PARAM_TYPE_OTHER));
@@ -158,10 +158,10 @@ public class SetURLsTests : Folks.TestCase
this._urls.unset (p.PARAM_TYPE_BLOG);
}
else if (type_p != null &&
- type_p.contains (p.PARAM_TYPE_HOMEPAGE) &&
- p.value == this._urls.get (p.PARAM_TYPE_HOMEPAGE))
+ type_p.contains (p.PARAM_TYPE_HOME_PAGE) &&
+ p.value == this._urls.get (p.PARAM_TYPE_HOME_PAGE))
{
- this._urls.unset (p.PARAM_TYPE_HOMEPAGE);
+ this._urls.unset (p.PARAM_TYPE_HOME_PAGE);
}
else if (type_p == null &&
p.value == this._urls.get (p.PARAM_TYPE_OTHER))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]