[tracker/tracker-0.12: 184/202] tracker-needle: Ellipsize tag list so long tags don't obstruct window
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.12: 184/202] tracker-needle: Ellipsize tag list so long tags don't obstruct window
- Date: Thu, 6 Oct 2011 18:03:55 +0000 (UTC)
commit 8677c486efc991916b7df93f1cad6ffa4502c583
Author: Martyn Russell <martyn lanedo com>
Date: Mon Sep 19 12:51:31 2011 +0100
tracker-needle: Ellipsize tag list so long tags don't obstruct window
src/tracker-needle/tracker-taglist.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-needle/tracker-taglist.vala b/src/tracker-needle/tracker-taglist.vala
index 3b5b5b9..5d4c22e 100644
--- a/src/tracker-needle/tracker-taglist.vala
+++ b/src/tracker-needle/tracker-taglist.vala
@@ -69,9 +69,11 @@ public class Tracker.TagList : ScrolledWindow {
col.pack_start (renderer, true);
col.set_cell_data_func (renderer, model_text_renderer_func);
- renderer = new CellRendererText ();
renderer.xpad = 5;
renderer.ypad = 5;
+ ((CellRendererText) renderer).ellipsize = Pango.EllipsizeMode.END;
+ ((CellRendererText) renderer).ellipsize_set = true;
+
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]