[gitg/wip/sidebar] Added stack switcher fr history panels



commit b6a359cc14d9d12ccd4435abbf025ab0696fa296
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Tue Jul 2 20:21:10 2013 +0200

    Added stack switcher fr history panels

 gitg/history/gitg-history-paned.vala    |    4 +++-
 gitg/resources/ui/gitg-history-paned.ui |    7 +++++--
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/gitg/history/gitg-history-paned.vala b/gitg/history/gitg-history-paned.vala
index 5aca134..3598396 100644
--- a/gitg/history/gitg-history-paned.vala
+++ b/gitg/history/gitg-history-paned.vala
@@ -30,7 +30,7 @@ class Paned : Gtk.Paned
        private Gtk.Paned d_paned_panels;
 
        [GtkChild]
-       private Gtk.Toolbar d_toolbar_panels;
+       private Gtk.StackSwitcher d_stack_switcher_panels;
 
        [GtkChild]
        private NavigationView d_navigation_view;
@@ -70,6 +70,8 @@ class Paned : Gtk.Paned
 
                d_renderer_commit_list_author.add_class("dim-label");
                d_renderer_commit_list_author_date.add_class("dim-label");
+
+               d_stack_switcher_panels.set_stack(d_stack_panel);
        }
 
        public Paned()
diff --git a/gitg/resources/ui/gitg-history-paned.ui b/gitg/resources/ui/gitg-history-paned.ui
index 2f16442..920f47e 100644
--- a/gitg/resources/ui/gitg-history-paned.ui
+++ b/gitg/resources/ui/gitg-history-paned.ui
@@ -18,6 +18,7 @@
         <property name="visible">True</property>
         <property name="hexpand">True</property>
         <property name="vexpand">True</property>
+        <property name="orientation">vertical</property>
         <child>
           <object class="GtkScrolledWindow" id="scrolled_window_navigation">
             <property name="visible">True</property>
@@ -44,12 +45,14 @@
           </packing>
         </child>
         <child>
-          <object class="GtkToolbar" id="d_toolbar_panels">
+          <object class="GtkStackSwitcher" id="d_stack_switcher_panels">
             <property name="visible">True</property>
+            <property name="halign">center</property>
+            <property name="margin">6</property>
           </object>
           <packing>
             <property name="expand">False</property>
-            <property name="fill">True</property>
+            <property name="fill">False</property>
           </packing>
         </child>
       </object>


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