[gnome-contacts] contact-list: Don't highlight contacts while selecting
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] contact-list: Don't highlight contacts while selecting
- Date: Sun, 17 Jan 2021 17:51:27 +0000 (UTC)
commit e3a330f6ef7088fa6b0a4c01e866112891e467f9
Author: Julian Sparber <julian sparber net>
Date: Wed Dec 16 16:08:24 2020 +0100
contact-list: Don't highlight contacts while selecting
src/contacts-contact-list.vala | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/contacts-contact-list.vala b/src/contacts-contact-list.vala
index 8bc9c76c..00fe5c1f 100644
--- a/src/contacts-contact-list.vala
+++ b/src/contacts-contact-list.vala
@@ -154,8 +154,13 @@ public class Contacts.ContactList : Gtk.ListBox {
row.selector_button.active = false;
}
- if (this.state != UiState.SELECTING)
+ // Disalbe highlighted (blue) selection since we use the checkbox to show selection
+ if (this.state == UiState.SELECTING) {
+ this.selection_mode = Gtk.SelectionMode.NONE;
+ } else {
+ this.selection_mode = Gtk.SelectionMode.BROWSE;
this.nr_contacts_marked = 0;
+ }
}
private int compare_rows (Gtk.ListBoxRow row_a, Gtk.ListBoxRow row_b) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]