mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
6c1133c885
This test compares GtkAlignment properties and GtkWidget margin and alignment properties.
182 lines
7.7 KiB
XML
182 lines
7.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 3.0 -->
|
|
<object class="GtkWindow" id="window1">
|
|
<property name="can_focus">False</property>
|
|
<property name="type">popup</property>
|
|
<property name="resizable">False</property>
|
|
<property name="width_request">300</property>
|
|
<property name="height_request">200</property>
|
|
<child>
|
|
<object class="GtkGrid" id="grid1">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<child>
|
|
<object class="GtkAlignment" id="alignment1">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="yalign">0</property>
|
|
<property name="xscale">0</property>
|
|
<property name="yscale">0</property>
|
|
<child>
|
|
<object class="GtkEventBox" id="eventbox1">
|
|
<property name="name">red</property>
|
|
<property name="width_request">30</property>
|
|
<property name="height_request">30</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">0</property>
|
|
<property name="width">1</property>
|
|
<property name="height">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkAlignment" id="alignment2">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="xscale">0</property>
|
|
<property name="yscale">0</property>
|
|
<child>
|
|
<object class="GtkEventBox" id="eventbox2">
|
|
<property name="name">red</property>
|
|
<property name="width_request">30</property>
|
|
<property name="height_request">30</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">0</property>
|
|
<property name="width">1</property>
|
|
<property name="height">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkAlignment" id="alignment3">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="xalign">1</property>
|
|
<property name="yalign">1</property>
|
|
<property name="xscale">0</property>
|
|
<property name="yscale">0</property>
|
|
<child>
|
|
<object class="GtkEventBox" id="eventbox3">
|
|
<property name="name">red</property>
|
|
<property name="width_request">30</property>
|
|
<property name="height_request">30</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">2</property>
|
|
<property name="top_attach">0</property>
|
|
<property name="width">1</property>
|
|
<property name="height">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkAlignment" id="alignment4">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="yalign">0</property>
|
|
<property name="top_padding">10</property>
|
|
<property name="bottom_padding">30</property>
|
|
<property name="left_padding">20</property>
|
|
<property name="right_padding">40</property>
|
|
<child>
|
|
<object class="GtkEventBox" id="eventbox4">
|
|
<property name="name">red</property>
|
|
<property name="width_request">30</property>
|
|
<property name="height_request">30</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">1</property>
|
|
<property name="width">1</property>
|
|
<property name="height">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkAlignment" id="alignment5">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="top_padding">10</property>
|
|
<property name="bottom_padding">30</property>
|
|
<property name="left_padding">20</property>
|
|
<property name="right_padding">40</property>
|
|
<child>
|
|
<object class="GtkEventBox" id="eventbox5">
|
|
<property name="name">red</property>
|
|
<property name="width_request">30</property>
|
|
<property name="height_request">30</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">1</property>
|
|
<property name="width">1</property>
|
|
<property name="height">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkAlignment" id="alignment6">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="xalign">1</property>
|
|
<property name="yalign">1</property>
|
|
<property name="top_padding">10</property>
|
|
<property name="bottom_padding">30</property>
|
|
<property name="left_padding">20</property>
|
|
<property name="right_padding">40</property>
|
|
<child>
|
|
<object class="GtkEventBox" id="eventbox6">
|
|
<property name="name">red</property>
|
|
<property name="width_request">30</property>
|
|
<property name="height_request">30</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">2</property>
|
|
<property name="top_attach">1</property>
|
|
<property name="width">1</property>
|
|
<property name="height">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|