[gnome-builder/wip/gtk4-port: 788/1774] libide/tree: add ypadding to text




commit 1e0e9fd9f2a32511eaaabbf11c5ddffa52fb6fad
Author: Christian Hergert <chergert redhat com>
Date:   Wed Apr 27 18:08:32 2022 -0700

    libide/tree: add ypadding to text
    
    This makes it feel a bit closer to what it looked like in GTK 3.

 src/libide/tree/ide-tree.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libide/tree/ide-tree.c b/src/libide/tree/ide-tree.c
index f0108a131..118affc45 100644
--- a/src/libide/tree/ide-tree.c
+++ b/src/libide/tree/ide-tree.c
@@ -615,6 +615,7 @@ ide_tree_init (IdeTree *self)
 
   cell = g_object_new (GTK_TYPE_CELL_RENDERER_TEXT,
                        "ellipsize", PANGO_ELLIPSIZE_END,
+                       "ypad", 6,
                        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]