[gnome-builder] project-tree: rename "Files" to the project title
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] project-tree: rename "Files" to the project title
- Date: Tue, 26 Apr 2016 11:20:56 +0000 (UTC)
commit b54d74f38cb46a0379936269bdb36d0b778abddc
Author: Christian Hergert <chergert redhat com>
Date: Tue Apr 26 04:20:19 2016 -0700
project-tree: rename "Files" to the project title
https://bugzilla.gnome.org/show_bug.cgi?id=754337
plugins/project-tree/gb-project-tree-builder.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/project-tree/gb-project-tree-builder.c b/plugins/project-tree/gb-project-tree-builder.c
index dab7f99..0cf4513 100644
--- a/plugins/project-tree/gb-project-tree-builder.c
+++ b/plugins/project-tree/gb-project-tree-builder.c
@@ -49,6 +49,7 @@ build_context (GbProjectTreeBuilder *self,
g_autofree gchar *name = NULL;
IdeTreeNode *child;
IdeContext *context;
+ IdeProject *project;
IdeVcs *vcs;
GFile *workdir;
@@ -58,6 +59,7 @@ build_context (GbProjectTreeBuilder *self,
context = IDE_CONTEXT (ide_tree_node_get_item (node));
vcs = ide_context_get_vcs (context);
workdir = ide_vcs_get_working_directory (vcs);
+ project = ide_context_get_project (context);
file_info = g_file_info_new ();
@@ -74,9 +76,9 @@ build_context (GbProjectTreeBuilder *self,
child = g_object_new (IDE_TYPE_TREE_NODE,
"item", item,
- "text", _("Files"),
"icon-name", "folder-symbolic",
NULL);
+ g_object_bind_property (project, "name", child, "text", G_BINDING_SYNC_CREATE);
ide_tree_node_append (node, child);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]