[gnome-music] Bug 697635 - Cannot play tracks from album



commit 52acc4b7e4767360302e8ca2099b502c753cb4cc
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Tue Apr 9 15:55:24 2013 +0200

    Bug 697635 - Cannot play tracks from album

 src/widgets.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/widgets.js b/src/widgets.js
index 3d0ada2..aefdac1 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -57,6 +57,14 @@ const AlbumWidget = new Lang.Class({
         });
         this.view.set_view_type(Gd.MainViewType.LIST);
         this.view.set_model(this.model);
+        this.view.connect('item-activated', Lang.bind(this,
+            function(widget, id, path) {
+                let iter = this.model.get_iter (path)[1];
+                let item = this.model.get_value(iter, 5);
+                this.player.setCurrentTrack(item);
+                this.player.play();
+            })
+        );
 
         this.cover = new Gtk.Image();
         this.vbox = new Gtk.VBox();


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