diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-02-08 18:58:10 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-02-08 18:58:10 +0000 |
commit | 800023f7ab5854c19bdaf426ba86d24feea014ec (patch) | |
tree | 89e59a92f8823b3e50e68290e1698a08a5baec0c /src/mpris2-controller.vala | |
parent | 1691ba2e034d688d58fba39fa88d8ef10bf67fe6 (diff) | |
download | ayatana-indicator-sound-800023f7ab5854c19bdaf426ba86d24feea014ec.tar.gz ayatana-indicator-sound-800023f7ab5854c19bdaf426ba86d24feea014ec.tar.bz2 ayatana-indicator-sound-800023f7ab5854c19bdaf426ba86d24feea014ec.zip |
work done around playlist changed
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r-- | src/mpris2-controller.vala | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala index d4cdc0c..444bdf6 100644 --- a/src/mpris2-controller.vala +++ b/src/mpris2-controller.vala @@ -48,6 +48,7 @@ public class Mpris2Controller : GLib.Object this.playlists = Bus.get_proxy_sync ( BusType.SESSION, this.owner.dbus_name, "/org/mpris/MediaPlayer2" ); + this.playlists.PlaylistChanged.connect (on_playlistdetails_changed); } this.properties_interface = Bus.get_proxy_sync ( BusType.SESSION, "org.freedesktop.Properties.PropertiesChanged", @@ -109,7 +110,7 @@ public class Mpris2Controller : GLib.Object title.alter_label (this.mpris2_root.Identity); } } - + private bool ensure_correct_playback_status(){ debug("TEST playback status = %s", this.player.PlaybackStatus); TransportMenuitem.state p = (TransportMenuitem.state)this.determine_play_state(this.player.PlaybackStatus); @@ -185,7 +186,6 @@ public class Mpris2Controller : GLib.Object } } - public bool connected() { return (this.player != null && this.mpris2_root != null); @@ -198,6 +198,11 @@ public class Mpris2Controller : GLib.Object } } + private void on_playlistdetails_changed (PlaylistDetails details) + { + + } + public async void fetch_playlists() { PlaylistDetails[] current_playlists = null; |