[tracker/tracker-needle-improved-tagging: 5/6] tracker-needle: Don't add same renderer x2 to a column and show tag count
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-needle-improved-tagging: 5/6] tracker-needle: Don't add same renderer x2 to a column and show tag count
- Date: Mon, 19 Sep 2011 14:37:03 +0000 (UTC)
commit ff20fec0f034c564293d077fda5815ae3dd4aa7d
Author: Martyn Russell <martyn lanedo com>
Date: Mon Sep 19 13:48:00 2011 +0100
tracker-needle: Don't add same renderer x2 to a column and show tag count
src/tracker-needle/tracker-taglist.vala | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/src/tracker-needle/tracker-taglist.vala b/src/tracker-needle/tracker-taglist.vala
index 5d4c22e..c5c9796 100644
--- a/src/tracker-needle/tracker-taglist.vala
+++ b/src/tracker-needle/tracker-taglist.vala
@@ -58,22 +58,21 @@ public class Tracker.TagList : ScrolledWindow {
col.set_expand (true);
col.set_sizing (Gtk.TreeViewColumnSizing.AUTOSIZE);
- // Do this later when we have more time
-// renderer = new CellRendererToggle ();
-// renderer.xpad = 5;
-// renderer.ypad = 5;
-// col.pack_start (renderer, false);
-// col.add_attribute (renderer, "active", 0);
-
+ // Name
renderer = new CellRendererText ();
col.pack_start (renderer, true);
col.set_cell_data_func (renderer, model_text_renderer_func);
+ col.add_attribute (renderer, "text", 1);
renderer.xpad = 5;
renderer.ypad = 5;
((CellRendererText) renderer).ellipsize = Pango.EllipsizeMode.END;
((CellRendererText) renderer).ellipsize_set = true;
+ // Count
+ renderer = new CellRendererText ();
+ renderer.xpad = 5;
+ renderer.ypad = 5;
col.pack_end (renderer, false);
col.add_attribute (renderer, "text", 3);
treeview.append_column (col);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]