[gitg] Add history builtin view



commit 5e90902e039b813c82e4a4f973c1e6c487a8f1b6
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 2d4272e..b66e238 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -549,11 +549,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]