diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2018-01-17 15:12:58 +0100 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2018-01-21 10:26:16 +0100 |
commit | 2a101835a127b1722fb37b022249f4f26c5e1af1 (patch) | |
tree | e30944beb78c749a1ec28f9838e9df2fe43eb60a /src/contacts-list-pane.vala | |
parent | 00a3590fd0fc11dc57f3941a43e59c1a9f033d01 (diff) | |
download | gnome-contacts-2a101835a127b1722fb37b022249f4f26c5e1af1.tar.gz |
ContactList: use and sync the UiState.
Diffstat (limited to 'src/contacts-list-pane.vala')
-rw-r--r-- | src/contacts-list-pane.vala | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/contacts-list-pane.vala b/src/contacts-list-pane.vala index 333c1dd..59582a9 100644 --- a/src/contacts-list-pane.vala +++ b/src/contacts-list-pane.vala @@ -54,6 +54,7 @@ public class Contacts.ListPane : Frame { // Load the ContactsView and connect the necessary signals this.contacts_list = new ContactList (contacts_store); + bind_property ("state", this.contacts_list, "state", BindingFlags.BIDIRECTIONAL | BindingFlags.SYNC_CREATE); this.contacts_list_container.add (this.contacts_list); this.contacts_list.selection_changed.connect( (l, contact) => { @@ -73,11 +74,6 @@ public class Contacts.ListPane : Frame { = this.contacts_list.sensitive = !this.state.editing (); - if (this.state == UiState.SELECTING) - this.contacts_list.show_selectors (); - else - this.contacts_list.hide_selectors (); - this.actions_bar.visible = (this.state == UiState.SELECTING); } |