Show a title for primary non-main contacts in content pane

This commit is contained in:
Alexander Larsson 2012-02-16 14:17:30 +01:00
parent e6ba541188
commit fe2ab67a40
2 changed files with 3 additions and 4 deletions

View file

@ -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;

View file

@ -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;