[gnome-software: 13/18] gs-shell: Tidy up visibility of back button




commit 0b989b1f0fb489a4ed13a0c69c79efada1a0467d
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed Feb 3 23:54:02 2021 +0000

    gs-shell: Tidy up visibility of back button
    
    It doesn’t need a revealer now that it’s only visible in situations
    wherer the sidebar isn’t — it’s now revealed as the sidebar is hidden.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #1111

 src/gs-shell.ui | 39 +++++++++++++++------------------------
 1 file changed, 15 insertions(+), 24 deletions(-)
---
diff --git a/src/gs-shell.ui b/src/gs-shell.ui
index e69303fea..425839624 100644
--- a/src/gs-shell.ui
+++ b/src/gs-shell.ui
@@ -123,32 +123,23 @@
                 <property name="hexpand">True</property>
                 <property name="show-close-button">True</property>
                 <child>
-                  <object class="GtkRevealer" id="back_revealer">
-                    <property name="can_focus">False</property>
-                    <property name="transition-type">crossfade</property>
-                    <property name="transition-duration" bind-source="main_leaflet" 
bind-property="mode-transition-duration" bind-flags="bidirectional|sync-create"/>
-                    <property name="visible" bind-source="header_leaflet" bind-property="folded" 
bind-flags="sync-create"/>
-                    <property name="reveal-child" bind-source="header_leaflet" bind-property="folded" 
bind-flags="sync-create"/>
+                  <object class="GtkButton" id="button_back">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <signal name="clicked" handler="gs_shell_back_button_cb"/>
+                    <child internal-child="accessible">
+                      <object class="AtkObject" id="button_back_accessible">
+                        <property name="accessible-name" translatable="yes">Go back</property>
+                      </object>
+                    </child>
+                    <style>
+                      <class name="image-button"/>
+                    </style>
                     <child>
-                      <object class="GtkButton" id="button_back">
+                      <object class="GtkImage" id="back_image">
                         <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <signal name="clicked" handler="gs_shell_back_button_cb"/>
-                        <child internal-child="accessible">
-                          <object class="AtkObject" id="button_back_accessible">
-                            <property name="accessible-name" translatable="yes">Go back</property>
-                          </object>
-                        </child>
-                        <style>
-                          <class name="image-button"/>
-                        </style>
-                        <child>
-                          <object class="GtkImage" id="back_image">
-                            <property name="visible">True</property>
-                            <property name="icon_name">go-previous-symbolic</property>
-                            <property name="icon_size">1</property>
-                          </object>
-                        </child>
+                        <property name="icon_name">go-previous-symbolic</property>
+                        <property name="icon_size">1</property>
                       </object>
                     </child>
                   </object>


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