[gnome-contacts] Remove unnecessary model property that conflicted with Treeview.model



commit b1824897d4e0ecd9e5ffa16af05db7ad45cb596a
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Mar 5 16:32:22 2012 +0100

    Remove unnecessary model property that conflicted with Treeview.model

 src/contacts-view.vala |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/contacts-view.vala b/src/contacts-view.vala
index e42971b..dc7722e 100644
--- a/src/contacts-view.vala
+++ b/src/contacts-view.vala
@@ -123,7 +123,7 @@ public class Contacts.View : TreeView {
 
   public string get_header_text (TreeIter iter) {
     ContactData *data;
-    model.get (iter, 1, out data);
+    list_store.get (iter, 1, out data);
     if (data == suggestions_header_data) {
       /* Translators: This is the header for the list of suggested contacts to
 	 link to the current contact */
@@ -180,8 +180,6 @@ public class Contacts.View : TreeView {
     }
   }
 
-  public TreeModel model { get { return list_store; } }
-
   private bool apply_filter (Contact contact) {
     if (contact.is_hidden)
       return false;
@@ -406,7 +404,7 @@ public class Contacts.View : TreeView {
   private void init_view (TextDisplay text_display) {
     this.text_display = text_display;
 
-    set_model (model);
+    set_model (list_store);
     set_headers_visible (false);
 
     var row_padding = 12;
@@ -528,7 +526,7 @@ public class Contacts.View : TreeView {
     TreeIter iter;
     if (lookup_iter (contact, out iter)) {
       get_selection ().select_iter (iter);
-      scroll_to_cell (model.get_path (iter),
+      scroll_to_cell (list_store.get_path (iter),
 		      null, true, 0.0f, 0.0f);
     }
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]