[gnome-control-center] sharing: Use a HdyColumn and a GtkScrolledWindow
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] sharing: Use a HdyColumn and a GtkScrolledWindow
- Date: Fri, 29 Mar 2019 18:24:26 +0000 (UTC)
commit 5be6fc4d1fd3245dedcbe408df23ee1ac42b7585
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Feb 20 15:25:18 2019 +0100
sharing: 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/sharing/cc-sharing-panel.ui | 38 ++++++++++++--------------------------
1 file changed, 12 insertions(+), 26 deletions(-)
---
diff --git a/panels/sharing/cc-sharing-panel.ui b/panels/sharing/cc-sharing-panel.ui
index ee514a2b8..db59109fe 100644
--- a/panels/sharing/cc-sharing-panel.ui
+++ b/panels/sharing/cc-sharing-panel.ui
@@ -6,39 +6,23 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <object class="GtkBox" id="sharing_panel">
+ <object class="GtkScrolledWindow" id="sharing_panel">
<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>
-
- <child>
- <object class="GtkBox">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="hexpand">True</property>
- </object>
- <packing>
- <property name="pack_type">end</property>
- </packing>
- </child>
-
- <!-- Content -->
+ <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>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_top">32</property>
- <property name="margin_bottom">32</property>
- <property name="margin_left">24</property>
- <property name="margin_right">24</property>
<property name="hexpand">True</property>
<property name="orientation">vertical</property>
<child>
@@ -283,6 +267,8 @@
</child>
</object>
</child>
+ </object>
+ </child>
</object>
</child>
</template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]