[gnome-music/wip/jfelder/songsview-scrollable] songsview: Correctly use AdwClampScrollable




commit cb78da4e530fb08eda2928dbd7b82e9ecddfcc4f
Author: Jean Felder <jfelder src gnome org>
Date:   Sun Feb 20 14:02:43 2022 +0100

    songsview: Correctly use AdwClampScrollable
    
    AdwClampScrollable is mainly used to clamp a GtkListView. Therefore,
    its child needs to inherit from GtkScrollable.

 data/ui/SongsView.ui | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/data/ui/SongsView.ui b/data/ui/SongsView.ui
index 714423f8a..c2dc2126f 100644
--- a/data/ui/SongsView.ui
+++ b/data/ui/SongsView.ui
@@ -5,12 +5,12 @@
     <property name="margin-bottom">48</property>
     <property name="margin-top">48</property>
     <child>
-      <object class="AdwClampScrollable" id="_adw_clamp_scrollable">
-        <property name="hexpand">True</property>
-        <property name="vexpand">True</property>
-        <property name="maximum-size">1000</property>
+      <object class="GtkScrolledWindow">
         <child>
-          <object class="GtkScrolledWindow">
+          <object class="AdwClampScrollable" id="_adw_clamp_scrollable">
+            <property name="hexpand">True</property>
+            <property name="vexpand">True</property>
+            <property name="maximum-size">1000</property>
             <child>
               <object class="GtkListView" id="_listview">
                 <property name="show-separators">True</property>


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