summaryrefslogtreecommitdiff
path: root/src/contacts-list-pane.vala
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-02-19 16:16:26 +0100
committerAlexander Larsson <alexl@redhat.com>2012-02-20 11:12:14 +0100
commitb5572d8fb35cc75300ebb0caa61cc24f455452f6 (patch)
treeae6f53f5cdb059facafd3dfed96e61dde8035e8b /src/contacts-list-pane.vala
parentfec18834c1d4389f776f11a48cbb9b5fefeed83c (diff)
downloadgnome-contacts-b5572d8fb35cc75300ebb0caa61cc24f455452f6.tar.gz
Combine View and ViewWidget
Diffstat (limited to 'src/contacts-list-pane.vala')
-rw-r--r--src/contacts-list-pane.vala11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/contacts-list-pane.vala b/src/contacts-list-pane.vala
index 384ebe5..50ae1fe 100644
--- a/src/contacts-list-pane.vala
+++ b/src/contacts-list-pane.vala
@@ -22,7 +22,6 @@ using Folks;
public class Contacts.ListPane : Frame {
private Store contacts_store;
private View contacts_view;
- private ViewWidget list;
public Entry filter_entry;
private uint filter_entry_changed_id;
private bool ignore_selection_change;
@@ -139,15 +138,13 @@ public class Contacts.ListPane : Frame {
grid.set_orientation (Orientation.VERTICAL);
this.add (grid);
-
- list = new ViewWidget (contacts_view);
- list.selection_changed.connect( (l, contact) => {
+ contacts_view.selection_changed.connect( (l, contact) => {
if (!ignore_selection_change)
selection_changed (contact);
});
- scrolled.add (list);
- list.show_all ();
+ scrolled.add (contacts_view);
+ contacts_view.show_all ();
scrolled.set_no_show_all (true);
grid.add (search_revealer);
@@ -163,7 +160,7 @@ public class Contacts.ListPane : Frame {
public void select_contact (Contact contact, bool ignore_change = false) {
if (ignore_change)
ignore_selection_change = true;
- list.select_contact (contact);
+ contacts_view.select_contact (contact);
ignore_selection_change = false;
}
}