datetime: Use a scrolled window and a column

This better allows to handle short windows and better handle the
available width.
This commit is contained in:
Adrien Plazas 2019-01-14 15:30:27 +01:00 committed by Georges Basile Stavracas Neto
parent 91af270cce
commit fd0b45d6c3

View file

@ -272,14 +272,25 @@
<template class="CcDateTimePanel" parent="CcPanel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="hscrollbar-policy">never</property>
<child>
<object class="HdyColumn">
<property name="visible">True</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_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_start">134</property>
<property name="margin_end">134</property>
<property name="margin_top">32</property>
<property name="margin_bottom">32</property>
<property name="orientation">vertical</property>
<property name="spacing">32</property>
<child>
@ -631,6 +642,10 @@
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
<object class="GtkSizeGroup" id="row_sizegroup">
<property name="mode">vertical</property>
@ -643,3 +658,4 @@
</widgets>
</object>
</interface>