[gnome-builder] greeter: use GtkActionBar's GtkRevealer



commit 54c10d605795dc048d1195d750206e6098038657
Author: Christian Hergert <christian hergert me>
Date:   Fri May 29 12:34:52 2015 -0700

    greeter: use GtkActionBar's GtkRevealer
    
    No need to use our own GtkRevealer, since GtkActionBar has one built in.
    We simply need to toggle visibility.

 data/ui/gb-greeter-window.ui |   35 ++++++++++++++---------------------
 1 files changed, 14 insertions(+), 21 deletions(-)
---
diff --git a/data/ui/gb-greeter-window.ui b/data/ui/gb-greeter-window.ui
index b9138b0..db5818e 100644
--- a/data/ui/gb-greeter-window.ui
+++ b/data/ui/gb-greeter-window.ui
@@ -217,25 +217,18 @@
           </packing>
         </child>
         <child>
-          <object class="GtkRevealer" id="action_bar_revealer">
-            <property name="vexpand">false</property>
-            <property name="visible">true</property>
-            <property name="transition-type">slide-up</property>
+          <object class="GtkActionBar" id="action_bar">
+            <property name="visible">false</property>
             <child>
-              <object class="GtkActionBar" id="action_bar">
+              <object class="GtkButton" id="remove_button">
+                <property name="action-name">win.delete-selected-rows</property>
+                <property name="label" translatable="yes">_Remove</property>
+                <property name="use-underline">true</property>
                 <property name="visible">true</property>
-                <child>
-                  <object class="GtkButton" id="remove_button">
-                    <property name="action-name">win.delete-selected-rows</property>
-                    <property name="label" translatable="yes">_Remove</property>
-                    <property name="use-underline">true</property>
-                    <property name="visible">true</property>
-                    <property name="sensitive">false</property>
-                    <style>
-                      <class name="destructive-action"/>
-                    </style>
-                  </object>
-                </child>
+                <property name="sensitive">false</property>
+                <style>
+                  <class name="destructive-action"/>
+                </style>
               </object>
             </child>
           </object>
@@ -262,8 +255,8 @@
         <object id="new_button">
           <property name="visible">true</property>
         </object>
-        <object id="action_bar_revealer">
-          <property name="reveal-child">false</property>
+        <object id="action_bar">
+          <property name="visible">false</property>
         </object>
         <object id="other_projects_container">
           <property name="visible">true</property>
@@ -276,8 +269,8 @@
             <class name="selection-mode"/>
           </style>
         </object>
-        <object id="action_bar_revealer">
-          <property name="reveal-child">true</property>
+        <object id="action_bar">
+          <property name="visible">true</property>
         </object>
         <object id="title_stack">
           <property name="visible-child">selection_title</property>


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