[gnome-builder] buildui: use display name from build target



commit 756025e6d19786ae35c1e5f640abcb3afa6d5977
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 16 19:42:38 2019 -0800

    buildui: use display name from build target
    
    We need the display-name as it can contain pango markup, and we might need
    the name without pango markup in other places.

 src/plugins/buildui/gbp-buildui-tree-addin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/buildui/gbp-buildui-tree-addin.c b/src/plugins/buildui/gbp-buildui-tree-addin.c
index 45c2f5eef..66500974e 100644
--- a/src/plugins/buildui/gbp-buildui-tree-addin.c
+++ b/src/plugins/buildui/gbp-buildui-tree-addin.c
@@ -78,7 +78,7 @@ get_targets_cb (GObject      *object,
           g_autoptr(IdeTreeNode) node = NULL;
           g_autofree gchar *name = NULL;
 
-          name = ide_build_target_get_name (target);
+          name = ide_build_target_get_display_name (target);
           node = g_object_new (IDE_TYPE_TREE_NODE,
                                "destroy-item", TRUE,
                                "display-name", name,


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