[gnome-builder/wip/chergert/perspective] workbench: use overlay as toplevel child



commit 50ddc03fb5841b26533a7c0da8058692ecfff523
Author: Christian Hergert <chergert redhat com>
Date:   Tue Nov 10 23:41:34 2015 -0800

    workbench: use overlay as toplevel child
    
    This gives plugins a few more options for things to do in the workbench.

 data/ui/ide-workbench.ui |   62 +++++++++++++++++++++++++--------------------
 1 files changed, 34 insertions(+), 28 deletions(-)
---
diff --git a/data/ui/ide-workbench.ui b/data/ui/ide-workbench.ui
index 185bfb2..2375aa3 100644
--- a/data/ui/ide-workbench.ui
+++ b/data/ui/ide-workbench.ui
@@ -10,42 +10,48 @@
       </object>
     </child>
     <child>
-      <!--
-        top_stack is used so that we can have a perspective,
-        (the greeter perspective) as the initial perspective without
-        a stack switcher. Once we animate in the real perspectives, we
-        want the switcher. also, we want to animate in the switcher
-        as part of that transition, otherwise it looks clunky.
-      -->
-      <object class="GtkStack" id="top_stack">
+      <object class="GtkOverlay">
         <property name="visible">true</property>
-        <property name="transition-duration">333</property>
-        <property name="transition-type">slide-left-right</property>
         <child>
-          <object class="GtkBox">
-            <property name="expand">true</property>
-            <property name="orientation">horizontal</property>
+          <!--
+            top_stack is used so that we can have a perspective,
+            (the greeter perspective) as the initial perspective without
+            a stack switcher. Once we animate in the real perspectives, we
+            want the switcher. also, we want to animate in the switcher
+            as part of that transition, otherwise it looks clunky.
+          -->
+          <object class="GtkStack" id="top_stack">
+            <property name="transition-duration">333</property>
+            <property name="transition-type">slide-left-right</property>
+            <property name="vexpand">true</property>
             <property name="visible">true</property>
             <child>
-              <object class="GtkStackSwitcher" id="perspectives_stack_switcher">
-                <property name="margin">6</property>
-                <property name="orientation">vertical</property>
-                <property name="stack">perspectives_stack</property>
-                <property name="visible">true</property>
-              </object>
-            </child>
-            <child>
-              <object class="GtkStack" id="perspectives_stack">
-                <property name="homogeneous">false</property>
-                <property name="transition-type">crossfade</property>
-                <property name="transition-duration">333</property>
+              <object class="GtkBox">
+                <property name="expand">true</property>
+                <property name="orientation">horizontal</property>
                 <property name="visible">true</property>
+                <child>
+                  <object class="GtkStackSwitcher" id="perspectives_stack_switcher">
+                    <property name="margin">6</property>
+                    <property name="orientation">vertical</property>
+                    <property name="stack">perspectives_stack</property>
+                    <property name="visible">true</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkStack" id="perspectives_stack">
+                    <property name="homogeneous">false</property>
+                    <property name="transition-type">crossfade</property>
+                    <property name="transition-duration">333</property>
+                    <property name="visible">true</property>
+                  </object>
+                </child>
               </object>
+              <packing>
+                <property name="name">perspectives</property>
+              </packing>
             </child>
           </object>
-          <packing>
-            <property name="name">perspectives</property>
-          </packing>
         </child>
       </object>
     </child>


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