[gnome-usage] performance-view: Replace the GtkPaned by a HdyLeaflet



commit 70cfb6e3e5c1c2fba72021a082354304b2b77a60
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Sep 10 14:03:00 2019 +0200

    performance-view: Replace the GtkPaned by a HdyLeaflet
    
    This makes the switcher hide itself if the window is too narrow, helping
    the window to fit phone screens.

 data/ui/performance-view.ui | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/data/ui/performance-view.ui b/data/ui/performance-view.ui
index b0e2113..4276bde 100644
--- a/data/ui/performance-view.ui
+++ b/data/ui/performance-view.ui
@@ -7,13 +7,16 @@
 
     <child>
 
-      <object class="GtkPaned" id="paned">
+      <object class="HdyLeaflet" id="leaflet">
         <property name="visible">True</property>
         <property name="orientation">horizontal</property>
+        <property name="mode-transition-type">slide</property>
+        <property name="visible-child">content_box</property>
 
         <child>
           <object class="GtkBox" id="switcher_box">
-            <property name="visible">True</property>
+            <property name="hexpand">False</property>
+            <property name="hexpand-set">True</property>
             <property name="width-request">200</property>
             <style>
               <class name="sidebar"/>
@@ -22,7 +25,7 @@
         </child>
 
         <child>
-          <object class="GtkBox">
+          <object class="GtkBox" id="content_box">
             <property name="visible">True</property>
             <property name="orientation">vertical</property>
 


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