mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +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.
18 lines
589 B
XML
18 lines
589 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<object class="GtkWindow">
|
|
<property name="default-width">100</property>
|
|
<property name="default-height">200</property>
|
|
<property name="decorated">0</property>
|
|
<child>
|
|
<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>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|