diff options
author | Alexander Larsson <alexl@redhat.com> | 2012-02-16 14:17:30 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-02-16 14:19:03 +0100 |
commit | fe2ab67a40d4bd4fc9b146a943d0c4e11903e574 (patch) | |
tree | 0c8c34fdfe9582d5188f380e73c29307e9a989c0 | |
parent | e6ba541188d556bf68c704a741064b13fe74e914 (diff) | |
download | gnome-contacts-fe2ab67a40d4bd4fc9b146a943d0c4e11903e574.tar.gz |
Show a title for primary non-main contacts in content pane
-rw-r--r-- | src/contacts-contact-pane.vala | 5 | ||||
-rw-r--r-- | src/contacts-contact.vala | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala index 7f53b70..d670fee 100644 --- a/src/contacts-contact-pane.vala +++ b/src/contacts-contact-pane.vala @@ -1280,12 +1280,11 @@ public class Contacts.PersonaSheet : Grid { int row_nr = 0; - bool editable = - Contact.persona_has_writable_property (persona, "email-addresses") && + bool editable = Contact.persona_has_writable_property (persona, "email-addresses") && Contact.persona_has_writable_property (persona, "phone-numbers") && Contact.persona_has_writable_property (persona, "postal-addresses"); - if (!persona.store.is_primary_store || sheet_nr > 0) { + if (!Contact.persona_is_main (persona) || sheet_nr > 0) { header = new FieldRow (pane.row_group, pane); Label label; diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala index ec9e7f3..182ff57 100644 --- a/src/contacts-contact.vala +++ b/src/contacts-contact.vala @@ -373,7 +373,7 @@ public class Contacts.Contact : GLib.Object { } } - private static bool persona_is_main (Persona persona) { + public static bool persona_is_main (Persona persona) { var store = persona.store; if (!store.is_primary_store) return false; |