diff options
author | Erick Pérez Castellanos <erick.red@gmail.com> | 2014-04-26 09:24:09 -0400 |
---|---|---|
committer | Erick Pérez Castellanos <erick.red@gmail.com> | 2014-05-29 16:17:22 -0400 |
commit | f0aa4a55e5d3bfd7ff9597dfae34377fa712b4a9 (patch) | |
tree | c575353a0298a17b8bfb54c4b7e4114387a6dabe /src/contacts-list-pane.vala | |
parent | 9351fc8841a64db299c4e768418c0015c0e868f6 (diff) | |
download | gnome-contacts-f0aa4a55e5d3bfd7ff9597dfae34377fa712b4a9.tar.gz |
Window: moved ListPane into ui file
Diffstat (limited to 'src/contacts-list-pane.vala')
-rw-r--r-- | src/contacts-list-pane.vala | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/contacts-list-pane.vala b/src/contacts-list-pane.vala index b9f1069..5c8155b 100644 --- a/src/contacts-list-pane.vala +++ b/src/contacts-list-pane.vala @@ -22,7 +22,16 @@ using Folks; [GtkTemplate (ui = "/org/gnome/contacts/contacts-list-pane.ui")] public class Contacts.ListPane : Frame { - private Store contacts_store; + private Store _store; + public Store store { + get { + return _store; + } + set { + _store = value; + contacts_view.store = _store; + } + } [GtkChild] private View contacts_view; @@ -84,12 +93,10 @@ public class Contacts.ListPane : Frame { filter_entry_changed_id = Timeout.add (300, filter_entry_changed_timeout); } - public ListPane (Store contacts_store) { + construct { search_tool_item.set_expand (true); filter_entry.changed.connect (filter_entry_changed); - contacts_view.store = contacts_store; - contacts_view.set_show_subset (View.Subset.ALL); contacts_view.selection_changed.connect( (l, contact) => { if (!ignore_selection_change) |