forked from AuroraMiddleware/gtk
2113a18a18
Have square images in the following sizes: * 20 * 100 * 150 * 200 * 300 and place them in a can-shrink Picture allocated at the sizes: * 200x100 * 100x200 and set align to center/center. That's 10 combinations and they should all do the right thing.
25 lines
815 B
XML
25 lines
815 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<object class="GtkWindow">
|
|
<property name="width_request">200</property>
|
|
<property name="height_request">100</property>
|
|
<property name="decorated">0</property>
|
|
<child>
|
|
<object class="GtkOverlay">
|
|
<child type="overlay">
|
|
<object class="GtkPicture">
|
|
<property name="paintable">green-100x100.png</property>
|
|
<property name="keep-aspect-ratio">0</property>
|
|
<property name="can-shrink">1</property>
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<layout>
|
|
<property name="measure">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|