projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52a8492
)
node editor: Preserve aspect ratio
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 17 Sep 2021 13:29:55 +0000
(09:29 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 17 Sep 2021 14:28:49 +0000
(10:28 -0400)
We don't want to distort our rendering.
Tell the paintable to keep the aspect
ratio.
demos/node-editor/node-editor-window.ui
patch
|
blob
|
history
diff --git
a/demos/node-editor/node-editor-window.ui
b/demos/node-editor/node-editor-window.ui
index c4abee64020481c94ee5866150f2542049c6ee7b..1fb55e4f7dee381b5d1faa13bef5d78f6bdb903d 100644
(file)
--- 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>