diff options
author | Erick Pérez Castellanos <erick.red@gmail.com> | 2014-04-26 02:12:35 -0400 |
---|---|---|
committer | Erick Pérez Castellanos <erick.red@gmail.com> | 2014-05-29 16:17:22 -0400 |
commit | 9351fc8841a64db299c4e768418c0015c0e868f6 (patch) | |
tree | 953c6f64a4e8c693f251650fd7a01c3e37a0d994 /src/contacts-list-pane.vala | |
parent | 1851e04dd75a14e30ba01d3bbe4395b30d005610 (diff) | |
download | gnome-contacts-9351fc8841a64db299c4e768418c0015c0e868f6.tar.gz |
Contacts.View: moved into ui file
Contacts.store instant of View promoted to property. Removed classic
constructor code.
Diffstat (limited to 'src/contacts-list-pane.vala')
-rw-r--r-- | src/contacts-list-pane.vala | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/contacts-list-pane.vala b/src/contacts-list-pane.vala index 041dbca..b9f1069 100644 --- a/src/contacts-list-pane.vala +++ b/src/contacts-list-pane.vala @@ -23,6 +23,8 @@ using Folks; [GtkTemplate (ui = "/org/gnome/contacts/contacts-list-pane.ui")] public class Contacts.ListPane : Frame { private Store contacts_store; + + [GtkChild] private View contacts_view; [GtkChild] @@ -38,9 +40,6 @@ public class Contacts.ListPane : Frame { public Button delete_button; [GtkChild] - public ScrolledWindow scrolled; - - [GtkChild] public ActionBar actions_bar; private uint filter_entry_changed_id; @@ -89,16 +88,13 @@ public class Contacts.ListPane : Frame { search_tool_item.set_expand (true); filter_entry.changed.connect (filter_entry_changed); - this.contacts_store = contacts_store; - this.contacts_view = new View (contacts_store); + contacts_view.store = contacts_store; contacts_view.set_show_subset (View.Subset.ALL); contacts_view.selection_changed.connect( (l, contact) => { if (!ignore_selection_change) selection_changed (contact); }); - scrolled.add (contacts_view); - contacts_view.show_all (); /* contact mark handling */ contacts_view.contacts_marked.connect ((nr_contacts_marked) => { |