[gnome-control-center] region: Use a HdyColumn and a GtkScrolledWindow
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: Use a HdyColumn and a GtkScrolledWindow
- Date: Tue, 19 Feb 2019 13:45:29 +0000 (UTC)
commit 23e85b6c8b1c1ff24146db926fb536499c946f63
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sat Jan 26 17:05:53 2019 +0100
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.
panels/region/cc-region-panel.ui | 25 ++++++++++---------------
1 file 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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]