[gnome-music/wip/mschraal/mrqmcq2u-debug-spew] some debug spew



commit 9c3335111172810f4b5396f717c481367535ec78
Author: Marinus Schraal <mschraal gnome org>
Date:   Mon Feb 17 12:48:04 2020 +0100

    some debug spew

 gnomemusic/widgets/artistalbumwidget.py | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/gnomemusic/widgets/artistalbumwidget.py b/gnomemusic/widgets/artistalbumwidget.py
index c8c136e8..0ed574f4 100644
--- a/gnomemusic/widgets/artistalbumwidget.py
+++ b/gnomemusic/widgets/artistalbumwidget.py
@@ -52,6 +52,8 @@ class ArtistAlbumWidget(Gtk.Box):
             cover_size_group=None):
         super().__init__(orientation=Gtk.Orientation.HORIZONTAL)
 
+        self._corealbum = corealbum
+
         self._size_group = size_group
         self._cover_size_group = cover_size_group
 
@@ -113,8 +115,13 @@ class ArtistAlbumWidget(Gtk.Box):
         return disc_box
 
     def _on_model_items_changed(self, model, position, removed, added):
+        print("items-changed", model, position, removed, added)
         n_items = model.get_n_items()
+        print("n-items {} for {} by {}".format(
+            n_items, self._corealbum.props.title,
+            self._corealbum.props.artist))
         for i in range(n_items):
+            print(i)
             discbox = self._disc_list_box.get_row_at_index(i)
             discbox.props.show_disc_label = (n_items > 1)
 


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