[gnome-contacts] Remove initial letter column



commit 69e45968d3182d42bff4bbb28cc91f9a65c3b460
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Jan 18 16:27:25 2012 +0100

    Remove initial letter column
    
    Keep the internal first letter tracking for doing separators later.

 src/contacts-view.vala |   24 +-----------------------
 1 files changed, 1 insertions(+), 23 deletions(-)
---
diff --git a/src/contacts-view.vala b/src/contacts-view.vala
index d0bde30..d131039 100644
--- a/src/contacts-view.vala
+++ b/src/contacts-view.vala
@@ -422,27 +422,6 @@ public class Contacts.ViewWidget : TreeView {
     var column = new TreeViewColumn ();
     column.set_spacing (4);
 
-    var text = new CellRendererText ();
-    text.set_alignment (0, 0);
-    text.set_padding (0, row_padding);
-    column.pack_start (text, false);
-    text.set ("weight", Pango.Weight.BOLD, "scale", 1.28, "width", 24);
-    column.set_cell_data_func (text, (column, cell, model, iter) => {
-	string letter = "";
-	if (view.is_first (iter)) {
-	  Contact contact;
-	  view.model.get (iter, 0, out contact);
-	  letter = contact.initial_letter.to_string ();
-	}
-
-	cell.set ("text", letter);
-	if (letter != "") {
-	  cell.height = -1;
-	} else {
-	  cell.height = 1;
-	}
-      });
-
     var icon = new CellRendererPixbuf ();
     icon.set_padding (0, row_padding);
     icon.xalign = 0.0f;
@@ -514,8 +493,7 @@ public class Contacts.ViewWidget : TreeView {
 	}
       });
 
-
-    text = new CellRendererText ();
+    var text = new CellRendererText ();
     text.set_alignment (0, 0);
     column.pack_start (text, true);
     text.set ("weight", Pango.Weight.BOLD);



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