diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-09-17 09:29:55 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-09-17 10:28:49 -0400 |
commit | 27d662f1aadd33016d26758b216c551b47b4f18d (patch) | |
tree | 308e5e0a0145916f27e2e342ddc95cf086715fa5 | |
parent | 52a849288793e7eede878798a88760c058266f60 (diff) | |
download | gtk+-27d662f1aadd33016d26758b216c551b47b4f18d.tar.gz |
node editor: Preserve aspect ratio
We don't want to distort our rendering.
Tell the paintable to keep the aspect
ratio.
-rw-r--r-- | demos/node-editor/node-editor-window.ui | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/node-editor/node-editor-window.ui b/demos/node-editor/node-editor-window.ui index c4abee6402..1fb55e4f7d 100644 --- a/demos/node-editor/node-editor-window.ui +++ b/demos/node-editor/node-editor-window.ui @@ -198,6 +198,7 @@ <child> <object class="GtkPicture" id="picture"> <property name="can-shrink">0</property> + <property name="keep-aspect-ratio">1</property> <property name="halign">center</property> <property name="valign">center</property> <child> |