node editor: Preserve aspect ratio
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Sep 2021 13:29:55 +0000 (09:29 -0400)
committerMatthias 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

index c4abee64020481c94ee5866150f2542049c6ee7b..1fb55e4f7dee381b5d1faa13bef5d78f6bdb903d 100644 (file)
                     <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>