Skip to content
Snippets Groups Projects
Commit f87f0dd8 authored by Adrien Plazas's avatar Adrien Plazas Committed by Guido Gunther
Browse files

examples: Use HdyRow

This makes the code simpler and demoes the widget.
parent 834d547d
No related branches found
No related tags found
1 merge request!176Add many rows widgets
......@@ -614,84 +614,30 @@
<property name="expand">True</property>
<property name="selection-mode">none</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<object class="HdyActionRow">
<property name="can_focus">False</property>
<property name="expand">True</property>
<property name="orientation">horizontal</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Maximum width</property>
<property name="xalign">0</property>
<property name="margin-bottom">18</property>
<property name="margin-start">20</property>
<property name="margin-end">6</property>
<property name="margin-top">18</property>
<property name="ellipsize">end</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<property name="title" translatable="yes">Maximum width</property>
<property name="visible">True</property>
<child type="action">
<object class="GtkSpinButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="margin-bottom">18</property>
<property name="margin-start">20</property>
<property name="margin-end">20</property>
<property name="margin-top">18</property>
<property name="adjustment">column_width_adjustment</property>
<property name="valign">center</property>
<property name="visible">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
</object>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<object class="HdyActionRow">
<property name="can_focus">False</property>
<property name="expand">True</property>
<property name="orientation">horizontal</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Linear growth width</property>
<property name="xalign">0</property>
<property name="margin-bottom">18</property>
<property name="margin-start">20</property>
<property name="margin-end">6</property>
<property name="margin-top">18</property>
<property name="ellipsize">end</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<property name="title" translatable="yes">Linear growth width</property>
<property name="visible">True</property>
<child type="action">
<object class="GtkSpinButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="margin-bottom">18</property>
<property name="margin-start">20</property>
<property name="margin-end">20</property>
<property name="margin-top">18</property>
<property name="adjustment">column_linear_width_adjustment</property>
<property name="valign">center</property>
<property name="visible">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
</object>
</child>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment