[gitg] Initialize panels after building UI



commit 93c78c90f77cc0bbfc273f9a29fcc73b77de39f4
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Mon Jul 1 10:36:16 2013 +0200

    Initialize panels after building UI

 gitg/history/gitg-history.vala |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gitg/history/gitg-history.vala b/gitg/history/gitg-history.vala
index a112e35..6e940f1 100644
--- a/gitg/history/gitg-history.vala
+++ b/gitg/history/gitg-history.vala
@@ -106,16 +106,6 @@ 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()
@@ -277,6 +267,16 @@ namespace GitgHistory
                                                d_paned_panels,
                                                "orientation",
                                                SettingsBindFlags.GET);
+
+                       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_walker(Navigation n, Gitg.Ref? head)


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