[gnome-builder/gnome-builder-43] libide/gui: use content-fit=fill for wallpaper



commit 9446d3d184219ca801b1e6e7622986602f26c48b
Author: Christian Hergert <chergert redhat com>
Date:   Wed Sep 21 22:28:02 2022 -0700

    libide/gui: use content-fit=fill for wallpaper
    
    I have no idea why a Fedora 37 VM gets some extra space when this grows,
    but this might be a better way to ensure that it ends up right rather than
    the deprecated property (which was not deprecated mid-cycle when this code
    was written).

 src/libide/gui/ide-style-variant-preview.ui | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/gui/ide-style-variant-preview.ui b/src/libide/gui/ide-style-variant-preview.ui
index 2df9e4867..0a5e8f8b3 100644
--- a/src/libide/gui/ide-style-variant-preview.ui
+++ b/src/libide/gui/ide-style-variant-preview.ui
@@ -13,7 +13,7 @@
         <property name="overflow">hidden</property>
         <child>
           <object class="GtkPicture" id="wallpaper">
-            <property name="keep-aspect-ratio">false</property>
+            <property name="content-fit">fill</property>
             <property name="width-request">164</property>
             <property name="height-request">90</property>
           </object>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]