summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk>2011-03-21 18:03:58 (GMT)
committerRaul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk>2011-03-21 18:20:03 (GMT)
commit4be6ab548a046ac760d46c3ffc0375d5a62f98da (patch)
treeac8e745a2acc838587eed49ff58ad5acad49eed0
parent6a2253b8110f04e904b022e9fc21f66f3153a78a (diff)
downloadfolks-4be6ab548a046ac760d46c3ffc0375d5a62f98da.tar.gz
folks-4be6ab548a046ac760d46c3ffc0375d5a62f98da.tar.xz
folks-inspect: use LinkedHashSet to access im-addresses
-rw-r--r--NEWS1
-rw-r--r--tools/inspect/utils.vala11
2 files changed, 7 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index 77b4e6a..8c7c00a 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ Overview of changes from libfolks 0.4.0 to libfolks 0.5.0
=========================================================
Bugs fixed:
+* Bug 645430 - folks-inspect: Use LinkedHashSet to access im-addresses
* Bug 644968 - _update_phone_numbers() needs to create copies
of each List<FieldDetails>
* Bug 644966 - _update_emails () needs to create copies of each
diff --git a/tools/inspect/utils.vala b/tools/inspect/utils.vala
index e62975c..bc73d70 100644
--- a/tools/inspect/utils.vala
+++ b/tools/inspect/utils.vala
@@ -266,8 +266,9 @@ private class Folks.Inspect.Utils
}
else if (prop_name == "im-addresses")
{
- HashTable<string, GenericArray<string>> im_addresses =
- (HashTable<string, GenericArray<string>>) prop_value.get_boxed ();
+ HashTable<string, LinkedHashSet<string>> im_addresses =
+ (HashTable<string, LinkedHashSet<string>>)
+ prop_value.get_boxed ();
output_string = "{ ";
bool first = true;
@@ -279,15 +280,15 @@ private class Folks.Inspect.Utils
output_string += "'%s' : { ".printf ((string) k);
first = false;
- GenericArray<string> addresses = (GenericArray<string>) v;
+ LinkedHashSet<string> addresses = (LinkedHashSet<string>) v;
bool _first = true;
- addresses.foreach ((a) =>
+ foreach (var a in addresses)
{
if (_first == false)
output_string += ", ";
output_string += "'%s'".printf ((string) a);
_first = false;
- });
+ }
output_string += " }";
});