[gnome-music/wip/mschraal/gtk4: 50/102] artistalbumwidget: Cleanup



commit bb4ee545a976a2a88db193316bd2707180776e59
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Oct 31 16:21:30 2019 +0100

    artistalbumwidget: Cleanup

 data/ui/ArtistAlbumWidget.ui             | 39 +++++++-------------------------
 gnomemusic/widgets/artistalbumswidget.py |  1 -
 2 files changed, 8 insertions(+), 32 deletions(-)
---
diff --git a/data/ui/ArtistAlbumWidget.ui b/data/ui/ArtistAlbumWidget.ui
index 7462799b..f701a8ed 100644
--- a/data/ui/ArtistAlbumWidget.ui
+++ b/data/ui/ArtistAlbumWidget.ui
@@ -1,40 +1,28 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.20.0 -->
 <interface>
   <requires lib="gtk+" version="3.12"/>
   <template parent="GtkBox" class="ArtistAlbumWidget">
-    <property name="margin_top">20</property>
-    <property name="margin_right">120</property>
-    <property name="visible">True</property>
+        <property name="margin-end">120</property>
+        <property name="margin-top">20</property>
     <child>
       <object class="CoverStack" id="_cover_stack">
-        <property name="visible">True</property>
-       <property name="margin_top">20</property>
-       <property name="margin_right">30</property>
-        <property name="margin_bottom">20</property>
-       <property name="margin_left">120</property>
+        <property name="margin-bottom">20</property>
+        <property name="margin-end">30</property>
+        <property name="margin-start">120</property>
+        <property name="margin-top">20</property>
         <property name="can_focus">False</property>
         <property name="valign">start</property>
       </object>
-      <packing>
-        <property name="position">0</property>
-      </packing>
     </child>
     <child>
       <object class="GtkBox" id="_album_box">
-        <property name="visible">True</property>
-        <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
         <child>
           <object class="GtkBox" id="box3">
-            <property name="visible">True</property>
-            <property name="can_focus">False</property>
             <child>
               <object class="GtkLabel" id="_title_year">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="margin_top">20</property>
-                <property name="margin_bottom">20</property>
+                <property name="margin-bottom">20</property>
+                <property name="margin-top">20</property>
                 <property name="ellipsize">middle</property>
                 <property name="xalign">0</property>
                 <property name="yalign">0</property>
@@ -44,25 +32,14 @@
               </object>
             </child>
           </object>
-          <packing>
-            <property name="position">0</property>
-          </packing>
         </child>
         <child>
           <object class="DiscListBox" id="_disc_list_box">
-            <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="selection-mode">0</property>
-            <!-- <property name="orientation">vertical</property> -->
           </object>
-          <packing>
-            <property name="position">1</property>
-          </packing>
         </child>
       </object>
-      <packing>
-        <property name="position">1</property>
-      </packing>
     </child>
   </template>
 </interface>
diff --git a/gnomemusic/widgets/artistalbumswidget.py b/gnomemusic/widgets/artistalbumswidget.py
index abf8084f..005a59ac 100644
--- a/gnomemusic/widgets/artistalbumswidget.py
+++ b/gnomemusic/widgets/artistalbumswidget.py
@@ -61,7 +61,6 @@ class ArtistAlbumsWidget(Gtk.ListBox):
         self.bind_model(self._model, self._add_album)
 
         self.get_style_context().add_class("artist-albums-widget")
-        self.props.visible = True
 
     def _song_activated(self, widget, song_widget):
         if self.props.selection_mode:


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