[gnome-contacts] AccountList: use add_separtor utility func



commit 3ef3c0abfc06077239587cc51ee0c983ad0df95b
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Fri May 30 23:58:12 2014 -0400

    AccountList: use add_separtor utility func

 src/contacts-accounts-list.vala |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/src/contacts-accounts-list.vala b/src/contacts-accounts-list.vala
index 6dbe5f2..7fe5119 100644
--- a/src/contacts-accounts-list.vala
+++ b/src/contacts-accounts-list.vala
@@ -37,7 +37,7 @@ public class Contacts.AccountsList : Grid {
     accounts_view = new ListBox ();
     accounts_view.set_selection_mode (SelectionMode.NONE);
     accounts_view.set_size_request (372, -1);
-    accounts_view.set_header_func (update_header_func);
+    accounts_view.set_header_func (add_separator);
 
     var scrolled = new ScrolledWindow(null, null);
     scrolled.set_min_content_height (210);
@@ -101,14 +101,6 @@ public class Contacts.AccountsList : Grid {
     account_selected ();
   }
 
-  private void update_header_func (ListBoxRow row, ListBoxRow? before) {
-    if (row.get_header () == null) {
-      row.set_header (new Separator (Orientation.HORIZONTAL));
-      return;
-    }
-    row.set_header (null);
-  }
-
   public void update_contents (bool select_active) {
     foreach (var child in accounts_view.get_children ()) {
       child.destroy ();


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