[gnome-builder] tree: ellipsize text to avoid moving status cell off screen
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] tree: ellipsize text to avoid moving status cell off screen
- Date: Fri, 28 Jun 2019 22:42:15 +0000 (UTC)
commit 3f4105246b6023ab318d223492d6fea436f8fbe3
Author: Christian Hergert <chergert redhat com>
Date: Fri Jun 28 15:41:47 2019 -0700
tree: ellipsize text to avoid moving status cell off screen
src/libide/tree/ide-tree.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/tree/ide-tree.c b/src/libide/tree/ide-tree.c
index 2010a839a..9b3e015bb 100644
--- a/src/libide/tree/ide-tree.c
+++ b/src/libide/tree/ide-tree.c
@@ -623,7 +623,9 @@ ide_tree_init (IdeTree *self)
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (column), cell, FALSE);
gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT (column), cell, pixbuf_cell_func, self, NULL);
- cell = gtk_cell_renderer_text_new ();
+ cell = g_object_new (GTK_TYPE_CELL_RENDERER_TEXT,
+ "ellipsize", PANGO_ELLIPSIZE_END,
+ NULL);
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (column), cell, TRUE);
gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT (column), cell, text_cell_func, self, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]