diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2018-01-12 16:59:15 +0100 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2018-01-12 16:59:15 +0100 |
commit | 33b71d8d97f85f5c756ab54dc7fa37c2c6df53bd (patch) | |
tree | 09f51155ec520f84bd09b1b8581aeec537d93a18 /src/contacts-list-pane.vala | |
parent | 51329ca1391499c9b088c976ff0f4b3a6b6785a6 (diff) | |
download | gnome-contacts-33b71d8d97f85f5c756ab54dc7fa37c2c6df53bd.tar.gz |
ListPane: make an activate_selection_mode().
Since it's basically the same thing as the method with the same name
from Contacts.Window (which might be merged in the future).
Diffstat (limited to 'src/contacts-list-pane.vala')
-rw-r--r-- | src/contacts-list-pane.vala | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/contacts-list-pane.vala b/src/contacts-list-pane.vala index 9e65fa4..4b48230 100644 --- a/src/contacts-list-pane.vala +++ b/src/contacts-list-pane.vala @@ -84,14 +84,13 @@ public class Contacts.ListPane : Frame { ignore_selection_change = false; } - public void show_selection () { - this.contacts_list.show_selectors (); - actions_bar.show (); - } + public void activate_selection_mode (bool active) { + if (active) + this.contacts_list.show_selectors (); + else + this.contacts_list.hide_selectors (); - public void hide_selection () { - this.contacts_list.hide_selectors (); - actions_bar.hide (); + this.actions_bar.visible = active; } [GtkCallback] |