[gnome-builder] libide/greeter: ensure pixel-size/size-request is enforced



commit 173a87e97ebba64cfde8102ab2391f52df76a0ee
Author: Christian Hergert <chergert redhat com>
Date:   Mon Aug 1 10:51:53 2022 -0700

    libide/greeter: ensure pixel-size/size-request is enforced
    
    This just helps ensure that we will be loading certain variants of icons,
    particularly that we want symbolic pngs. We're still missing the 32x32
    variant of the icon (which is why I missed this on my 2x scaling system)
    but that will be in a followup commit.

 src/libide/greeter/ide-greeter-row.c  | 1 -
 src/libide/greeter/ide-greeter-row.ui | 3 +++
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/greeter/ide-greeter-row.c b/src/libide/greeter/ide-greeter-row.c
index 9e5673be2..d61bbaaca 100644
--- a/src/libide/greeter/ide-greeter-row.c
+++ b/src/libide/greeter/ide-greeter-row.c
@@ -315,7 +315,6 @@ ide_greeter_row_set_project_info (IdeGreeterRow  *self,
 
           if (icon != NULL)
             g_object_set (priv->image,
-                          "pixel-size", 32,
                           "gicon", icon,
                           "visible", icon != NULL,
                           NULL);
diff --git a/src/libide/greeter/ide-greeter-row.ui b/src/libide/greeter/ide-greeter-row.ui
index 46b623979..1875a17ca 100644
--- a/src/libide/greeter/ide-greeter-row.ui
+++ b/src/libide/greeter/ide-greeter-row.ui
@@ -28,6 +28,9 @@
           <object class="GtkImage" id="image">
             <property name="visible">false</property>
             <property name="margin-end">12</property>
+            <property name="width-request">32</property>
+            <property name="height-request">32</property>
+            <property name="pixel-size">32</property>
           </object>
         </child>
         <child>


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