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