diff options
author | Alexander Larsson <alexl@redhat.com> | 2011-12-16 18:01:08 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2011-12-16 18:01:08 +0100 |
commit | 629f518d74a1c629816651121910bdb1a30fecfc (patch) | |
tree | 48e18a82ca5a975a84126184332aafd5ad6b4210 | |
parent | 7bec500650317cda021d2f19f36738b9a64b6eec (diff) | |
download | gnome-contacts-new-design.tar.gz |
Remove unused contacts booleansnew-design
-rw-r--r-- | src/contacts-contact-pane.vala | 2 | ||||
-rw-r--r-- | src/contacts-contact.vala | 2 | ||||
-rw-r--r-- | src/contacts-view.vala | 2 |
3 files changed, 0 insertions, 6 deletions
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala index 3fdde9b..efeb9f2 100644 --- a/src/contacts-contact-pane.vala +++ b/src/contacts-contact-pane.vala @@ -1361,7 +1361,6 @@ public class Contacts.ContactPane : ScrolledWindow { private async Persona? set_persona_property (Persona persona, string property_name, Value value) throws GLib.Error, PropertyError { - contact.is_unedited = false; if (persona is FakePersona) { var fake = persona as FakePersona; return yield fake.make_real_and_set (property_name, value); @@ -1379,7 +1378,6 @@ public class Contacts.ContactPane : ScrolledWindow { private async Persona? set_individual_property (Contact contact, string property_name, Value value) throws GLib.Error, PropertyError { - contact.is_unedited = false; bool did_set = false; // Need to make a copy here as it could change during the yields var personas_copy = contact.individual.personas.to_array (); diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala index 45b3bd9..b31a5a2 100644 --- a/src/contacts-contact.vala +++ b/src/contacts-contact.vala @@ -110,8 +110,6 @@ public class Contacts.Contact : GLib.Object { public PresenceType presence_type; public string presence_message; public bool is_phone; - public bool is_new; - public bool is_unedited; struct ContactDataRef { void *key; void *data; diff --git a/src/contacts-view.vala b/src/contacts-view.vala index d56fd0e..2ca440f 100644 --- a/src/contacts-view.vala +++ b/src/contacts-view.vala @@ -409,8 +409,6 @@ public class Contacts.ViewWidget : TreeView { cell.visible = true; var name = contact.display_name; - if (name == "" && contact.is_new) - name = _("New contact"); switch (text_display) { default: case TextDisplay.NONE: |