[tracker/tracker-needle-improved-tagging: 4/6] 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-needle-improved-tagging: 4/6] tracker-needle: Ellipsize tag list so long tags don't obstruct window
- Date: Mon, 19 Sep 2011 14:36:58 +0000 (UTC)
commit cff6253874599e71ea1b728fb0690bfae5b49c78
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]