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.
This commit is contained in:
Adrien Plazas 2019-02-20 15:25:18 +01:00 committed by Georges Basile Stavracas Neto
parent f9d0decc3a
commit 5be6fc4d1f

View file

@ -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 -->
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</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="margin_left">24</property>
<property name="margin_right">24</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="hexpand">True</property>
<property name="orientation">vertical</property>
<child>
@ -283,6 +267,8 @@
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</template>