summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Plazas <kekun.plazas@laposte.net>2019-01-26 17:05:53 +0100
committerRobert Ancell <robert.ancell@gmail.com>2019-02-19 13:38:13 +0000
commit23e85b6c8b1c1ff24146db926fb536499c946f63 (patch)
tree1e61ca7620f965dca87dd3d2aa43d3a38500a1f4
parent0a249441af3aa7b9d9d7db121098239e37631ee4 (diff)
downloadgnome-control-center-23e85b6c8b1c1ff24146db926fb536499c946f63.tar.gz
region: Use a HdyColumn and a GtkScrolledWindow
Put the widget's content into a HdyColumn, itself into a GtkScrolledWindow. This allows the panel to reach narrower sizes. This deliberately doesn't adapt the indentation of the contained widget to help this commit to be more readable and easier to review, it will be adapted in the next commit.
-rw-r--r--panels/region/cc-region-panel.ui25
1 files changed, 10 insertions, 15 deletions
diff --git a/panels/region/cc-region-panel.ui b/panels/region/cc-region-panel.ui
index 728ee8f16..7aec58e52 100644
--- a/panels/region/cc-region-panel.ui
+++ b/panels/region/cc-region-panel.ui
@@ -6,17 +6,19 @@
<property name="can_focus">False</property>
<child>
- <object class="GtkBox">
+ <object class="GtkScrolledWindow">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <!-- Stub boxes to make the content cover 1/3 of the screen -->
+ <property name="can-focus">False</property>
+ <property name="hscrollbar-policy">never</property>
<child>
- <object class="GtkBox">
+ <object class="HdyColumn">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="hexpand">True</property>
- </object>
- </child>
+ <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="margin_start">12</property>
+ <property name="margin_end">12</property>
<!-- Content -->
<child>
@@ -24,7 +26,6 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
- <property name="margin">32</property>
<property name="spacing">12</property>
<property name="hexpand">True</property>
<child>
@@ -309,12 +310,6 @@
</child>
</object>
</child>
-
- <child>
- <object class="GtkBox">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="hexpand">True</property>
</object>
</child>
</object>