[gnome-music] Fix for latest update on libgd
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Fix for latest update on libgd
- Date: Fri, 21 Jun 2013 16:42:18 +0000 (UTC)
commit 5f8d8ab66392cdd0fdeb1897ee8a990fd3a1d474
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Jun 21 15:50:39 2013 +0200
Fix for latest update on libgd
https://bugzilla.gnome.org/show_bug.cgi?id=702822
src/view.js | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/view.js b/src/view.js
index c6bcb36..06a53dc 100644
--- a/src/view.js
+++ b/src/view.js
@@ -74,6 +74,7 @@ const ViewContainer = new Lang.Class({
GdkPixbuf.Pixbuf,
GObject.TYPE_OBJECT,
GObject.TYPE_BOOLEAN,
+ GObject.TYPE_INT,
GObject.TYPE_STRING,
GObject.TYPE_BOOLEAN,
GObject.TYPE_BOOLEAN
@@ -208,7 +209,7 @@ const ViewContainer = new Lang.Class({
this.player.discoverer.discover_uri(item.get_url());
this._model.set(
iter,
- [0, 1, 2, 3, 4, 5, 7, 9],
+ [0, 1, 2, 3, 4, 5, 8, 10],
[toString(item.get_id()), "", item.get_title(), artist, this._symbolicIcon, item,
nowPlayingIconName, false]
);
} catch(err) {
@@ -216,7 +217,7 @@ const ViewContainer = new Lang.Class({
log("failed to discover url " + item.get_url());
this._model.set(
iter,
- [0, 1, 2, 3, 4, 5, 7, 9],
+ [0, 1, 2, 3, 4, 5, 8, 10],
[toString(item.get_id()), "", item.get_title(), artist, this._symbolicIcon, item,
errorIconName, true]
);
}
@@ -330,7 +331,7 @@ const Songs = new Lang.Class({
_onItemActivated: function (widget, id, path) {
var iter = this._model.get_iter(path)[1]
- if (this._model.get_value(iter, 7) != errorIconName) {
+ if (this._model.get_value(iter, 8) != errorIconName) {
this.player.setPlaylist("Songs", null, this._model, iter, 5);
this.player.setPlaying(true);
}
@@ -340,9 +341,9 @@ const Songs = new Lang.Class({
if (playlist != this._model){
return false;}
if (this.iterToClean){
- this._model.set_value(this.iterToClean, 9, false);
+ this._model.set_value(this.iterToClean, 10, false);
}
- this._model.set_value(currentIter, 9, true);
+ this._model.set_value(currentIter, 10, true);
this.iterToClean = currentIter.copy();
return false;
},
@@ -359,7 +360,7 @@ const Songs = new Lang.Class({
this.player.discoverer.discover_uri(item.get_url());
this._model.set(
iter,
- [5, 7, 8, 9],
+ [5, 8, 9, 10],
[item, nowPlayingIconName, false, false]
);
} catch(err) {
@@ -367,7 +368,7 @@ const Songs = new Lang.Class({
log("failed to discover url " + item.get_url());
this._model.set(
iter,
- [5, 7, 8, 9],
+ [5, 8, 9, 10],
[item, errorIconName, false, true]
);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]