[gnome-builder] workbench: add project tree builder in .ui



commit 726015a32bf17d99f96b1176e5ad20333cedebdb
Author: Christian Hergert <christian hergert me>
Date:   Fri Jun 5 19:08:20 2015 -0700

    workbench: add project tree builder in .ui

 data/ui/gb-workbench.ui              |    4 ++++
 src/workbench/gb-workbench-private.h |    2 ++
 src/workbench/gb-workbench.c         |    1 +
 3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/gb-workbench.ui b/data/ui/gb-workbench.ui
index 20b6cd3..6f9eaf7 100644
--- a/data/ui/gb-workbench.ui
+++ b/data/ui/gb-workbench.ui
@@ -103,6 +103,10 @@
                         <property name="headers-visible">false</property>
                         <property name="vexpand">true</property>
                         <property name="visible">true</property>
+                        <child type="builder">
+                          <object class="GbProjectTreeBuilder">
+                          </object>
+                        </child>
                       </object>
                       <packing>
                         <property name="icon-name">folder-symbolic</property>
diff --git a/src/workbench/gb-workbench-private.h b/src/workbench/gb-workbench-private.h
index d48c5a8..95d7433 100644
--- a/src/workbench/gb-workbench-private.h
+++ b/src/workbench/gb-workbench-private.h
@@ -25,6 +25,7 @@
 #include "gb-command-bar.h"
 #include "gb-command-manager.h"
 #include "gb-editor-workspace.h"
+#include "gb-project-tree.h"
 #include "gb-search-box.h"
 #include "gb-workbench-types.h"
 #include "gedit-menu-stack-switcher.h"
@@ -44,6 +45,7 @@ struct _GbWorkbench
   /* Template references */
   GbCommandBar           *command_bar;
   GeditMenuStackSwitcher *gear_menu_button;
+  GbProjectTree          *project_tree;
   GbSearchBox            *search_box;
   GbWorkspace            *workspace;
 
diff --git a/src/workbench/gb-workbench.c b/src/workbench/gb-workbench.c
index 7f322bc..18ffa90 100644
--- a/src/workbench/gb-workbench.c
+++ b/src/workbench/gb-workbench.c
@@ -479,6 +479,7 @@ gb_workbench_class_init (GbWorkbenchClass *klass)
   GB_WIDGET_CLASS_BIND (klass, GbWorkbench, gear_menu_button);
   GB_WIDGET_CLASS_BIND (klass, GbWorkbench, search_box);
   GB_WIDGET_CLASS_BIND (klass, GbWorkbench, workspace);
+  GB_WIDGET_CLASS_BIND (klass, GbWorkbench, project_tree);
 
   g_type_ensure (GB_TYPE_COMMAND_BAR);
   g_type_ensure (GB_TYPE_PROJECT_TREE);


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