diff options
author | Benjamin Otte <otte@redhat.com> | 2021-10-21 03:32:32 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2021-10-22 17:51:41 +0200 |
commit | 2113a18a18a81e4df2e92138ee44cad8e5a3c330 (patch) | |
tree | d68fdc342e929af27f0cf9c93a545d0a202312be /testsuite/reftests/center-center-150x150-picture-in-100x200.ui | |
parent | 1606a411162c87a2de4bfdf686bd2b6e972b36e2 (diff) | |
download | gtk+-2113a18a18a81e4df2e92138ee44cad8e5a3c330.tar.gz |
testsuite: Add lots of reftests for picture sizing
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.
Diffstat (limited to 'testsuite/reftests/center-center-150x150-picture-in-100x200.ui')
-rw-r--r-- | testsuite/reftests/center-center-150x150-picture-in-100x200.ui | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/reftests/center-center-150x150-picture-in-100x200.ui b/testsuite/reftests/center-center-150x150-picture-in-100x200.ui new file mode 100644 index 0000000000..9f02233bbd --- /dev/null +++ b/testsuite/reftests/center-center-150x150-picture-in-100x200.ui @@ -0,0 +1,24 @@ +<?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="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> |