[gtk/matthiasc/for-master] node editor: Preserve aspect ratio
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] node editor: Preserve aspect ratio
- Date: Fri, 17 Sep 2021 14:29:03 +0000 (UTC)
commit 27d662f1aadd33016d26758b216c551b47b4f18d
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 17 09:29:55 2021 -0400
node editor: Preserve aspect ratio
We don't want to distort our rendering.
Tell the paintable to keep the aspect
ratio.
demos/node-editor/node-editor-window.ui | 1 +
1 file changed, 1 insertion(+)
---
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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]