diff options
author | Frank Zschage <frank@reissan.de> | 2018-02-06 22:02:45 +0100 |
---|---|---|
committer | Frank Zschage <frank@reissan.de> | 2018-02-06 22:02:45 +0100 |
commit | 964c790e8e3cee0393fa9fa8ecba944fb3eaa1c0 (patch) | |
tree | 456e3ba631594ec563b4445ce3b59710d2bca73e /src/contacts-contact-pane.vala | |
parent | 24f99f55c17896a4572f9903919da0c651b49fc8 (diff) | |
download | gnome-contacts-964c790e8e3cee0393fa9fa8ecba944fb3eaa1c0.tar.gz |
ContactPane: Update right titlebar after editing contact
introduced a signal display_name_changed to notify listeners and especially to update the right titlebar after the name of a contact has been changed to fix issue #78
Diffstat (limited to 'src/contacts-contact-pane.vala')
-rw-r--r-- | src/contacts-contact-pane.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala index 3f6a443..beb6c1c 100644 --- a/src/contacts-contact-pane.vala +++ b/src/contacts-contact-pane.vala @@ -67,6 +67,11 @@ public class Contacts.ContactPane : Stack { /* Signals */ public signal void contacts_linked (string? main_contact, string linked_contact, LinkOperation operation); public signal void will_delete (Contact contact); + /** + * Passes the changed display name to all listeners after edit mode has been completed. + */ + public signal void display_name_changed (string new_display_name); + public void update_sheet () { if (on_edit_mode) { @@ -278,6 +283,7 @@ public class Contacts.ContactPane : Stack { (obj, result) => { try { Contact.set_individual_property.end (result); + display_name_changed (v.get_string ()); } catch (Error e) { show_message (e.message); /* FIXME: add this back */ |