diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-04-19 18:43:18 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-04-23 21:59:39 +0100 |
commit | 4b28646ea714d9322f09c35095716887ac200115 (patch) | |
tree | b13a68dd0ae33c15cd9888071a272f082209919c /tools | |
parent | 6b5c6befa0a4c392a1ffb6516963a0cbbbb1e4bd (diff) |
Change WebServiceDetails.…addresses to be a MultiMap<string, string>
Helps: bgo#640092
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inspect/utils.vala | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tools/inspect/utils.vala b/tools/inspect/utils.vala index fd1b69f..1127b8f 100644 --- a/tools/inspect/utils.vala +++ b/tools/inspect/utils.vala @@ -297,21 +297,19 @@ private class Folks.Inspect.Utils else if (prop_name == Folks.PersonaStore.detail_key (PersonaDetail.WEB_SERVICE_ADDRESSES)) { - HashMap<string, LinkedHashSet<string>> web_service_addresses = - (HashMap<string, LinkedHashSet<string>>) - prop_value.get_object (); + MultiMap<string, string> web_service_addresses = + (MultiMap<string, string>) prop_value.get_object (); output_string = "{ "; bool first = true; - foreach (var entry in web_service_addresses.entries) + foreach (var web_service in web_service_addresses.get_keys ()) { if (first == false) output_string += ", "; - output_string += "'%s' : { ".printf ((string) entry.key); + output_string += "'%s' : { ".printf (web_service); first = false; - LinkedHashSet<string> addresses = - (LinkedHashSet<string>) entry.value; + var addresses = web_service_addresses.get (web_service); bool _first = true; foreach (var a in addresses) { |