[gnome-contacts] View: moved default value to declarations
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] View: moved default value to declarations
- Date: Tue, 10 Jun 2014 16:47:59 +0000 (UTC)
commit 2f25ad5abe7adeae90d0414eecea23998a5b9f8a
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Mon Jun 9 22:27:04 2014 -0400
View: moved default value to declarations
src/contacts-view.vala | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/src/contacts-view.vala b/src/contacts-view.vala
index 399407e..b89a023 100644
--- a/src/contacts-view.vala
+++ b/src/contacts-view.vala
@@ -80,14 +80,14 @@ public class Contacts.View : ListBox {
public signal void selection_changed (Contact? contact);
public signal void contacts_marked (int contacts_marked);
- Subset show_subset;
+ Subset show_subset = Subset.ALL;
HashMap<Contact,ContactDataRow> contacts;
HashSet<Contact> hidden_contacts;
- int nr_contacts_marked;
+ int nr_contacts_marked = 0;
string []? filter_values;
- TextDisplay text_display;
- bool selectors_visible;
+ TextDisplay text_display = TextDisplay.PRESENCE;
+ bool selectors_visible = false;
private Store _store;
@@ -108,9 +108,6 @@ public class Contacts.View : ListBox {
construct {
hidden_contacts = new HashSet<Contact>();
- nr_contacts_marked = 0;
- show_subset = Subset.ALL;
- text_display = TextDisplay.PRESENCE;
contacts = new HashMap<Contact,ContactDataRow> ();
@@ -122,8 +119,6 @@ public class Contacts.View : ListBox {
this.set_filter_func (filter);
this.set_header_func (update_header);
- selectors_visible = false;
-
/* FIXME: remove hardcoded background color */
var color = Gdk.RGBA ();
color.parse ("#ebedeb");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]