[gnome-music/wip/mschraal/gtk4-v3: 63/187] artistalbumswidget: Do not inherit from final class AdwClamp




commit 2fc86af0420db236f738bdec118b4fe7dd67b1e6
Author: Jean Felder <jfelder src gnome org>
Date:   Sun Jan 9 14:23:41 2022 +0100

    artistalbumswidget: Do not inherit from final class AdwClamp

 data/ui/ArtistAlbumsWidget.ui            | 15 ++++++++++-----
 gnomemusic/widgets/artistalbumswidget.py |  4 ++--
 2 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/data/ui/ArtistAlbumsWidget.ui b/data/ui/ArtistAlbumsWidget.ui
index eb7fe0032..877fa6748 100644
--- a/data/ui/ArtistAlbumsWidget.ui
+++ b/data/ui/ArtistAlbumsWidget.ui
@@ -1,13 +1,18 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <requires lib="gtk+" version="3.18"/>
-  <template class="ArtistAlbumsWidget" parent="AdwClamp">
-    <property name="maximum-size">1000</property>
-    <property name="orientation">horizontal</property>
-    <property name="visible">True</property>
+  <template class="ArtistAlbumsWidget" parent="GtkBox">
+    <property name="orientation">vertical</property>
     <child>
-      <object class="GtkListBox" id="_listbox">
+      <object class="AdwClamp">
+        <property name="maximum-size">1000</property>
+        <property name="orientation">horizontal</property>
         <property name="visible">True</property>
+        <child>
+          <object class="GtkListBox" id="_listbox">
+            <property name="visible">True</property>
+          </object>
+        </child>
       </object>
     </child>
   </template>
diff --git a/gnomemusic/widgets/artistalbumswidget.py b/gnomemusic/widgets/artistalbumswidget.py
index a774e0594..aa55a1421 100644
--- a/gnomemusic/widgets/artistalbumswidget.py
+++ b/gnomemusic/widgets/artistalbumswidget.py
@@ -25,7 +25,7 @@
 from __future__ import annotations
 import typing
 
-from gi.repository import Adw, GObject, Gtk
+from gi.repository import GObject, Gtk
 
 from gnomemusic.widgets.albumwidget import AlbumWidget
 if typing.TYPE_CHECKING:
@@ -34,7 +34,7 @@ if typing.TYPE_CHECKING:
 
 
 @Gtk.Template(resource_path="/org/gnome/Music/ui/ArtistAlbumsWidget.ui")
-class ArtistAlbumsWidget(Adw.Clamp):
+class ArtistAlbumsWidget(Gtk.Box):
     """Widget containing all albums by an artist
 
     A vertical list of AlbumWidget, containing all the albums


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