aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-01-25 15:14:22 -0600
committerConor Curran <conor.curran@canonical.com>2011-01-25 15:14:22 -0600
commitf19af83dd99f095ad5ebe317000ac5bf2031a038 (patch)
tree7bc738eb9233799214870fb9f47988808dcd7487 /src/mpris2-controller.vala
parentd45fd344a30bc917c45aa07458e8961ba3018f69 (diff)
downloadayatana-indicator-sound-f19af83dd99f095ad5ebe317000ac5bf2031a038.tar.gz
ayatana-indicator-sound-f19af83dd99f095ad5ebe317000ac5bf2031a038.tar.bz2
ayatana-indicator-sound-f19af83dd99f095ad5ebe317000ac5bf2031a038.zip
tidy up
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r--src/mpris2-controller.vala11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala
index 1c9258c..a7b3de1 100644
--- a/src/mpris2-controller.vala
+++ b/src/mpris2-controller.vala
@@ -121,12 +121,11 @@ public class Mpris2Controller : GLib.Object
debug("artists is of type %s", v_artists.get_type_string ());
string display_artists;
if(v_artists.get_type_string() == "s"){
- debug("SPOTIFY YOU BASTARD");
+ debug("SPOTIFY is that you ?");
display_artists = v_artists.get_string();
}
else{
- debug ("conforms with the spec" );
- string[] artists = v_artists.dup_strv();
+ string[] artists = v_artists.dup_strv();
display_artists = string.joinv(", ", artists);
}
changed_updates.replace("xesam:artist", display_artists);
@@ -189,7 +188,7 @@ public class Mpris2Controller : GLib.Object
}
}
- public bool fetch_playlists()
+ public void fetch_playlists()
{
PlaylistDetails[] current_playlists = this.playlists.GetPlaylists(0,
10,
@@ -204,17 +203,15 @@ public class Mpris2Controller : GLib.Object
warning(" Playlists are on but its returning no current_playlists" );
this.owner.use_playlists = false;
}
- return false;
}
- private bool fetch_active_playlist()
+ private void fetch_active_playlist()
{
if (this.playlists.ActivePlaylist.valid == false){
debug("We don't have an active playlist");
}
PlaylistsMenuitem playlists_item = this.owner.custom_items[PlayerController.widget_order.PLAYLISTS] as PlaylistsMenuitem;
playlists_item.update_active_playlist ( this.playlists.ActivePlaylist.details );
- return false;
}
public void activate_playlist (ObjectPath path)