[gitg] Create panels in history



commit 3c97a13a6c859fad4e1a59664c076f86b5eb7aac
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Mon Jul 1 10:05:55 2013 +0200

    Create panels in history

 gitg/history/gitg-history.vala |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gitg/history/gitg-history.vala b/gitg/history/gitg-history.vala
index 8091d84..0820c5c 100644
--- a/gitg/history/gitg-history.vala
+++ b/gitg/history/gitg-history.vala
@@ -41,6 +41,8 @@ namespace GitgHistory
                private Gtk.Stack d_stack_panel;
                private Gtk.TreeView d_commit_list;
 
+               private Gitg.UIElements<GitgExt.HistoryPanel> d_panels;
+
                public string id
                {
                        owned get { return "/org/gnome/gitg/Views/History"; }
@@ -99,6 +101,16 @@ namespace GitgHistory
 
                        application.bind_property("repository", this,
                                                  "repository", BindingFlags.DEFAULT);
+
+                       var engine = Gitg.PluginsEngine.get_default();
+
+                       var extset = new Peas.ExtensionSet(engine,
+                                                          typeof(GitgExt.HistoryPanel),
+                                                          "history",
+                                                          this);
+
+                       d_panels = new Gitg.UIElements<GitgExt.HistoryPanel>(extset,
+                                                                            d_stack_panel);
                }
 
                private void update_sort_mode()


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