[gtk+] widget-factory: Improve actionbar appearance



commit 4e64708b3da3d71debdbef191e00bb8d9def7076
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 12 21:09:03 2014 -0700

    widget-factory: Improve actionbar appearance
    
    We are using the actionbar in the middle of the window, which
    is not really what it is designed for. To avoid the unfinished
    appearance on the sides, move it into the frame that we have
    around the stack below. This fixes the sides, but gives the top
    a double stroke. Too bad.

 demos/widget-factory/widget-factory.ui |   80 ++++++++++++++++---------------
 1 files changed, 41 insertions(+), 39 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index 0cc9ee6..f33e45f 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -1859,60 +1859,62 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkActionBar" id="actionbar1">
-                        <property name="visible">True</property>
-                        <child type="center">
-                          <object class="GtkStackSwitcher" id="switcher">
-                            <property name="visible">True</property>
-                            <property name="stack">stack</property>
-                            <property name="halign">center</property>
-                          </object>
-                        </child>
-                      </object>
-                      <packing>
-                        <property name="left-attach">0</property>
-                        <property name="top-attach">1</property>
-                      </packing>
-                    </child>
-                    <child>
                       <object class="GtkFrame" id="frame">
                         <property name="visible">True</property>
                         <property name="hexpand">False</property>
                         <child>
-                          <object class="GtkStack" id="stack">
+                          <object class="GtkBox">
                             <property name="visible">True</property>
-                            <property name="transition-type">crossfade</property>
-                            <property name="transition-duration">1000</property>
+                            <property name="orientation">vertical</property>
                             <child>
-                              <object class="GtkScrolledWindow" id="swo">
+                              <object class="GtkActionBar" id="actionbar1">
                                 <property name="visible">True</property>
-                                <property name="shadow-type">none</property>
-                                <property name="hscrollbar_policy">never</property>
-                                <child>
-                                  <object class="GtkTextView" id="tvo">
+                                <child type="center">
+                                  <object class="GtkStackSwitcher" id="switcher">
                                     <property name="visible">True</property>
-                                    <property name="can_focus">True</property>
-                                    <property name="buffer">textbuffer2</property>
+                                    <property name="stack">stack</property>
+                                    <property name="halign">center</property>
                                   </object>
                                 </child>
                               </object>
-                              <packing>
-                                <property name="name">page1</property>
-                                <property name="icon-name">document-open-recent-symbolic</property>
-                                <property name="title">News</property>
-                              </packing>
                             </child>
                             <child>
-                              <object class="GtkImage" id="imageo">
+                              <object class="GtkStack" id="stack">
                                 <property name="visible">True</property>
-                                <property name="icon-name">gtk3-widget-factory</property>
-                                <property name="pixel-size">256</property>
+                                <property name="transition-type">crossfade</property>
+                                <property name="transition-duration">1000</property>
+                                <child>
+                                  <object class="GtkScrolledWindow" id="swo">
+                                    <property name="visible">True</property>
+                                    <property name="shadow-type">none</property>
+                                    <property name="hscrollbar_policy">never</property>
+                                    <child>
+                                      <object class="GtkTextView" id="tvo">
+                                        <property name="visible">True</property>
+                                        <property name="can_focus">True</property>
+                                        <property name="buffer">textbuffer2</property>
+                                      </object>
+                                    </child>
+                                  </object>
+                                  <packing>
+                                    <property name="name">page1</property>
+                                    <property name="icon-name">document-open-recent-symbolic</property>
+                                    <property name="title">News</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkImage" id="imageo">
+                                    <property name="visible">True</property>
+                                    <property name="icon-name">gtk3-widget-factory</property>
+                                    <property name="pixel-size">256</property>
+                                  </object>
+                                  <packing>
+                                    <property name="name">page2</property>
+                                    <property name="icon-name">system-shutdown-symbolic</property>
+                                    <property name="title">Logo</property>
+                                  </packing>
+                                </child>
                               </object>
-                              <packing>
-                                <property name="name">page2</property>
-                                <property name="icon-name">system-shutdown-symbolic</property>
-                                <property name="title">Logo</property>
-                              </packing>
                             </child>
                           </object>
                         </child>


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