[gnome-contacts] ContactList: set visible = true earlier.
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] ContactList: set visible = true earlier.
- Date: Mon, 22 Jan 2018 14:38:59 +0000 (UTC)
commit 03b92240f14d9414a4c9ce2fdc624024d91d5553
Author: Niels De Graef <nielsdegraef gmail com>
Date: Mon Jan 22 13:52:43 2018 +0100
ContactList: set visible = true earlier.
This makes sure we don't show an empty list as contacts are being added.
src/contacts-contact-list.vala | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-contact-list.vala b/src/contacts-contact-list.vala
index 1c67347..b7edf7e 100644
--- a/src/contacts-contact-list.vala
+++ b/src/contacts-contact-list.vala
@@ -110,6 +110,7 @@ public class Contacts.ContactList : ListBox {
this.store = store;
this.filter_query = query;
this.filter_query.notify.connect (() => { invalidate_filter (); });
+ this.visible = true;
this.notify["state"].connect ( () => { on_ui_state_changed(); });
@@ -124,8 +125,6 @@ public class Contacts.ContactList : ListBox {
set_sort_func ((a, b) => compare_data (a as ContactDataRow, b as ContactDataRow));
set_filter_func (filter_row);
set_header_func (update_header);
-
- show ();
}
private void on_ui_state_changed () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]