[gnome-music/wip/jfelder/gtk4-v3] emptyview: use a GtkPicture to display welcome image



commit c1476f1be4e98713372f13b9dd5409a16a663346
Author: Jean Felder <jfelder src gnome org>
Date:   Sat Feb 12 13:57:27 2022 +0100

    emptyview: use a GtkPicture to display welcome image

 data/ui/EmptyView.ui | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/EmptyView.ui b/data/ui/EmptyView.ui
index 3daef9783..2be102a91 100644
--- a/data/ui/EmptyView.ui
+++ b/data/ui/EmptyView.ui
@@ -14,10 +14,10 @@
     <property name="valign">start</property>
     <property name="orientation">vertical</property>
     <child>
-      <object class="GtkImage">
-        <property name="resource">/org/gnome/Music/icons/welcome-music.svg</property>
-        <property name="height-request">300</property>
-        <property name="width-request">400</property>
+      <object class="GtkPicture">
+        <property name="can-shrink">true</property>
+        <property name="keep-aspect-ratio">true</property>
+        <property name="file">resource:///org/gnome/Music/icons/welcome-music.svg</property>
       </object>
     </child>
     <child>


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