forked from AuroraMiddleware/gtk
d8a73cbd03
It allows to specify the resize mode of the paintable inside the GtkPicture allocation. This also deprecates the keep-aspect-ratio property. Fixes #5027.
25 lines
812 B
XML
25 lines
812 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<object class="GtkWindow">
|
|
<property name="width_request">100</property>
|
|
<property name="height_request">200</property>
|
|
<property name="decorated">0</property>
|
|
<child>
|
|
<object class="GtkOverlay">
|
|
<child type="overlay">
|
|
<object class="GtkPicture">
|
|
<property name="paintable">green-150x150.png</property>
|
|
<property name="content-fit">fill</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>
|