[gitg/wip/simplify-arch] Add history builtin view



commit 84611c879aaa88a9272098013eb248a958dedf80
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Mon Jul 1 10:24:18 2013 +0200

    Add history builtin view

 gitg/gitg-window.vala |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index f2e6a63..038dc20 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -561,11 +561,17 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
                // Initialize peas extensions set for views
                var engine = PluginsEngine.get_default();
 
-               d_views = new UIElements<GitgExt.View>.with_builtin(new GitgExt.View[] {},
-                                                                   new Peas.ExtensionSet(engine,
-                                                                           typeof(GitgExt.View),
-                                                                           "application",
-                                                                           this),
+               var builtins = new GitgExt.View[] {
+                       new GitgHistory.View(this)
+               };
+
+               var extset = new Peas.ExtensionSet(engine,
+                                                  typeof(GitgExt.View),
+                                                  "application",
+                                                  this);
+
+               d_views = new UIElements<GitgExt.View>.with_builtin(builtins,
+                                                                   extset,
                                                                    d_stack_view);
 
                d_views.notify["current"].connect(on_current_view_changed);


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