[gnome-contacts] Show a title for primary non-main contacts in content pane
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Show a title for primary non-main contacts in content pane
- Date: Thu, 16 Feb 2012 13:19:46 +0000 (UTC)
commit fe2ab67a40d4bd4fc9b146a943d0c4e11903e574
Author: Alexander Larsson <alexl redhat com>
Date: Thu Feb 16 14:17:30 2012 +0100
Show a title for primary non-main contacts in content pane
src/contacts-contact-pane.vala | 5 ++---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]