mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
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
810 B
XML
25 lines
810 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-20x20.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>
|