[gnome-builder] libide/gui: don't allow preview picture to grow vertically
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/gui: don't allow preview picture to grow vertically
- Date: Sun, 25 Sep 2022 02:20:47 +0000 (UTC)
commit 2c2cb67bc6583d5b0e293f157b271cde7035ae2b
Author: Christian Hergert <chergert redhat com>
Date: Sat Sep 24 19:20:30 2022 -0700
libide/gui: don't allow preview picture to grow vertically
This can happen if you are on 1x (ie: no scaling) as the image is a 2x
image. It appears something isn't quite right in GtkPicture that will allow
it to grow higher up to the 2x pixel size.
src/libide/gui/ide-style-variant-preview.ui | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/libide/gui/ide-style-variant-preview.ui b/src/libide/gui/ide-style-variant-preview.ui
index 0a5e8f8b3..ebe156732 100644
--- a/src/libide/gui/ide-style-variant-preview.ui
+++ b/src/libide/gui/ide-style-variant-preview.ui
@@ -12,10 +12,16 @@
<property name="margin-end">2</property>
<property name="overflow">hidden</property>
<child>
- <object class="GtkPicture" id="wallpaper">
- <property name="content-fit">fill</property>
- <property name="width-request">164</property>
- <property name="height-request">90</property>
+ <object class="AdwClamp">
+ <property name="orientation">vertical</property>
+ <property name="maximum-size">90</property>
+ <property name="child">
+ <object class="GtkPicture" id="wallpaper">
+ <property name="content-fit">fill</property>
+ <property name="width-request">164</property>
+ <property name="height-request">90</property>
+ </object>
+ </property>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]