[gnome-music/wip/mschraal/gtk4-pre-squash-backup: 226/254] emptyview: use a GtkPicture to display welcome image




commit b42efe846af31d6b8c104d18ccdea6519e41e9d6
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]