[gnome-games/wip/exalm/libhandy4: 19/19] preferences-page-video: Wrap into a HdyColumn



commit ba43f0f2683b1c726af284606c6ae10d5aa47097
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Mon Sep 17 16:49:55 2018 +0500

    preferences-page-video: Wrap into a HdyColumn
    
    Add nice whitespace on the left and right when the window is wide enough.

 data/ui/preferences-page-video.ui | 46 +++++++++++++++++++++++----------------
 1 file changed, 27 insertions(+), 19 deletions(-)
---
diff --git a/data/ui/preferences-page-video.ui b/data/ui/preferences-page-video.ui
index e700f5be..be65929d 100644
--- a/data/ui/preferences-page-video.ui
+++ b/data/ui/preferences-page-video.ui
@@ -10,30 +10,38 @@
           <object class="GtkViewport">
             <property name="visible">True</property>
             <child>
-              <object class="GtkBox">
+              <object class="HdyColumn">
                 <property name="visible">True</property>
-                <property name="orientation">vertical</property>
-                <property name="margin">12</property>
-                <property name="spacing">12</property>
+                <property name="expand">True</property>
+                <property name="maximum_width">600</property>
+                <property name="linear-growth-width">300</property>
                 <child>
-                  <object class="GtkLabel">
+                  <object class="GtkBox">
                     <property name="visible">True</property>
-                    <property name="halign">start</property>
-                    <property name="label" translatable="yes">Filter</property>
-                    <attributes>
-                      <attribute name="weight" value="bold"/>
-                    </attributes>
-                  </object>
-                </child>
-                <child>
-                  <object class="GtkFrame">
-                    <property name="visible">True</property>
-                    <property name="shadow_type">in</property>
+                    <property name="orientation">vertical</property>
+                    <property name="margin">12</property>
+                    <property name="spacing">12</property>
+                    <child>
+                      <object class="GtkLabel">
+                        <property name="visible">True</property>
+                        <property name="halign">start</property>
+                        <property name="label" translatable="yes">Filter</property>
+                        <attributes>
+                          <attribute name="weight" value="bold"/>
+                        </attributes>
+                      </object>
+                    </child>
                     <child>
-                      <object class="GtkListBox" id="filter_list_box">
+                      <object class="GtkFrame">
                         <property name="visible">True</property>
-                        <property name="selection_mode">none</property>
-                        <signal name="row-activated" handler="filter_list_box_row_activated"/>
+                        <property name="shadow_type">in</property>
+                        <child>
+                          <object class="GtkListBox" id="filter_list_box">
+                            <property name="visible">True</property>
+                            <property name="selection_mode">none</property>
+                            <signal name="row-activated" handler="filter_list_box_row_activated"/>
+                          </object>
+                        </child>
                       </object>
                     </child>
                   </object>


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