[gnome-builder] tree: allow bold attributes when selected



commit b5fbda92e50a80745bf42dc1c8940e640c7b8179
Author: Christian Hergert <chergert redhat com>
Date:   Sat Jun 29 09:22:23 2019 -0700

    tree: allow bold attributes when selected

 src/libide/tree/ide-tree.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/src/libide/tree/ide-tree.c b/src/libide/tree/ide-tree.c
index 43c21f991..a213b29c7 100644
--- a/src/libide/tree/ide-tree.c
+++ b/src/libide/tree/ide-tree.c
@@ -206,15 +206,11 @@ text_cell_func (GtkCellLayout   *layout,
       g_clear_pointer (&copy, pango_attr_list_unref);
     }
 
-  /* Only apply styling if the node isn't selected */
-  if (!ide_tree_node_is_selected (node))
-    {
-      if (ide_tree_node_get_is_header (node) ||
-          (ide_tree_node_get_flags (node) & IDE_TREE_NODE_FLAGS_ADDED))
-        g_object_set (cell, "attributes", priv->header_attributes, NULL);
-      else if (ide_tree_node_is_empty (node))
-        g_object_set (cell, "attributes", priv->dim_label_attributes, NULL);
-    }
+  if (ide_tree_node_get_is_header (node) ||
+      (ide_tree_node_get_flags (node) & IDE_TREE_NODE_FLAGS_ADDED))
+    g_object_set (cell, "attributes", priv->header_attributes, NULL);
+  else if (ide_tree_node_is_empty (node) && !ide_tree_node_is_selected (node))
+    g_object_set (cell, "attributes", priv->dim_label_attributes, NULL);
 
   display_name = ide_tree_node_get_display_name (node);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]