summaryrefslogtreecommitdiff
path: root/src/contacts-list-pane.vala
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2018-01-12 16:59:15 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2018-01-12 16:59:15 +0100
commit33b71d8d97f85f5c756ab54dc7fa37c2c6df53bd (patch)
tree09f51155ec520f84bd09b1b8581aeec537d93a18 /src/contacts-list-pane.vala
parent51329ca1391499c9b088c976ff0f4b3a6b6785a6 (diff)
downloadgnome-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.vala13
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]