diff options
author | Alexander Larsson <alexl@redhat.com> | 2011-06-22 14:35:23 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2011-06-22 14:35:23 +0200 |
commit | efe695ac141655a0519be245d108f773fc49beb0 (patch) | |
tree | 91d580742cc90b69b9fc8941807f59a409e21ae6 /src/contacts-types.vala | |
parent | 51fa1d843a74a1768eddbf5b1099bf1ac7d97ec1 (diff) | |
download | gnome-contacts-efe695ac141655a0519be245d108f773fc49beb0.tar.gz |
Add all custom labels seen to the TypeSet
Diffstat (limited to 'src/contacts-types.vala')
-rw-r--r-- | src/contacts-types.vala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/contacts-types.vala b/src/contacts-types.vala index d0d9d3c..1e939d2 100644 --- a/src/contacts-types.vala +++ b/src/contacts-types.vala @@ -300,4 +300,11 @@ public class Contacts.TypeSet : Object { store.set (iter, 0, label, 1, null); custom_hash.insert (label, iter); } + + public void type_seen (FieldDetails detail) { + if (detail.parameters.contains ("x-google-label")) { + var label = get_first_string (detail.parameters.get ("x-google-label")); + add_custom_label (label, null); + } + } } |