[gnome-music/newartists] show All Artists



commit e93dbf9782eb18f12baee40d9c77816d276b8d4d
Author: Eslam Mostafa <cseslam gmail com>
Date:   Sun May 19 22:17:34 2013 +0200

    show All Artists

 src/view.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/view.js b/src/view.js
index bef3765..1cc8726 100644
--- a/src/view.js
+++ b/src/view.js
@@ -548,6 +548,14 @@ const Artists = new Lang.Class({
             this.view.get_generic_view().get_style_context().add_class("artist-panel-dark");
         else
             this.view.get_generic_view().get_style_context().add_class("artist-panel-white");
+        var iter = this._model.append();
+        this._artists["All Artists".toLowerCase()] = {"iter": iter, "albums": []};
+        this._model.set(
+            iter,
+            [0, 1, 2, 3],
+            ["All Artists", "All Artists", "All Artists", "All Artists"]
+        );
+        this.emit("artist-added");
         this.show_all();
 
     },


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