[gnome-control-center] online-accounts: Use a HdyColumn



commit 8c92368e7ca7e0c95c9510649ca5bed1e039efc3
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Sep 25 08:29:15 2018 +0200

    online-accounts: Use a HdyColumn
    
    This better adapts the panel's size to the window's size, allowing it to
    look good on both large and narrow windows.

 panels/online-accounts/online-accounts.ui | 44 ++++---------------------------
 1 file changed, 5 insertions(+), 39 deletions(-)
---
diff --git a/panels/online-accounts/online-accounts.ui b/panels/online-accounts/online-accounts.ui
index 6f3ef98e8..9cc4e7403 100644
--- a/panels/online-accounts/online-accounts.ui
+++ b/panels/online-accounts/online-accounts.ui
@@ -70,44 +70,14 @@
             <property name="hscrollbar_policy">never</property>
             <property name="min_content_height">500</property>
             <child>
-              <object class="GtkGrid">
+              <object class="HdyColumn">
                 <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="row-spacing">18</property>
-                <property name="column-spacing">18</property>
-                <property name="orientation">vertical</property>
-                <property name="margin_start">32</property>
-                <property name="margin_end">32</property>
+                <property name="maximum_width">600</property>
+                <property name="linear_growth_width">400</property>
                 <property name="margin_top">32</property>
                 <property name="margin_bottom">32</property>
-                <property name="hexpand">True</property>
-                <property name="width-request">300</property>
-
-                <!--
-                  Stub boxes to pull the widgets to the middle, and yet allow them to
-                  grow and cover a third of the available space
-                -->
-                <child>
-                  <object class="GtkBox">
-                    <property name="visible">True</property>
-                    <property name="hexpand">True</property>
-                  </object>
-                  <packing>
-                    <property name="top-attach">0</property>
-                    <property name="left-attach">0</property>
-                  </packing>
-                </child>
-
-                <child>
-                  <object class="GtkBox">
-                    <property name="visible">True</property>
-                    <property name="hexpand">True</property>
-                  </object>
-                  <packing>
-                    <property name="top-attach">0</property>
-                    <property name="left-attach">2</property>
-                  </packing>
-                </child>
+                <property name="margin_start">12</property>
+                <property name="margin_end">12</property>
 
                 <child>
                   <object class="GtkBox">
@@ -192,10 +162,6 @@
                       </object>
                     </child>
                   </object>
-                  <packing>
-                    <property name="top-attach">0</property>
-                    <property name="left-attach">1</property>
-                  </packing>
                 </child>
               </object>
             </child>


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