[gnome-music/wip/mschraal/core] songliststore: Clarify model



commit 5bba78e2c082acd5adf7ecc54ab4b9954877b3aa
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Jun 27 09:40:22 2019 +0200

    songliststore: Clarify model
    
    Still the old model, so a lot of cruft.

 gnomemusic/songliststore.py | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/gnomemusic/songliststore.py b/gnomemusic/songliststore.py
index 7025b84d..7e7382d4 100644
--- a/gnomemusic/songliststore.py
+++ b/gnomemusic/songliststore.py
@@ -13,16 +13,16 @@ class SongListStore(Gtk.ListStore):
         self.props.model = Gtk.ListStore(
             GObject.TYPE_STRING,
             GObject.TYPE_STRING,
-            GObject.TYPE_STRING,
-            GObject.TYPE_STRING,
-            GdkPixbuf.Pixbuf,
-            GObject.TYPE_OBJECT,
-            GObject.TYPE_BOOLEAN,
-            GObject.TYPE_INT,
-            GObject.TYPE_STRING,
+            GObject.TYPE_STRING,    # title
+            GObject.TYPE_STRING,    # artist
+            GdkPixbuf.Pixbuf,       # album art
+            GObject.TYPE_OBJECT,    # Grl.Media
+            GObject.TYPE_BOOLEAN,   # selected
             GObject.TYPE_INT,
-            GObject.TYPE_BOOLEAN,
-            GObject.TYPE_INT
+            GObject.TYPE_STRING,    # play icon (?)
+            GObject.TYPE_INT,       # favorite
+            GObject.TYPE_BOOLEAN,   # iter_to_clean
+            GObject.TYPE_INT        # validation
         )
 
         self._model.connect("items-changed", self._on_items_changed)


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