diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-12-10 15:36:44 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-12-10 15:36:44 +0000 |
commit | 93190886959bfa16b835794a4a12a9a945e7777e (patch) | |
tree | cc78ef6d5f30e5b926ddf2b0006abc6f12718f57 /src/mpris2-controller.vala | |
parent | f3b321919e3390f3d3af2eea33ad71611616ce61 (diff) | |
download | ayatana-indicator-sound-93190886959bfa16b835794a4a12a9a945e7777e.tar.gz ayatana-indicator-sound-93190886959bfa16b835794a4a12a9a945e7777e.tar.bz2 ayatana-indicator-sound-93190886959bfa16b835794a4a12a9a945e7777e.zip |
proposed extension proven and observations gathered
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r-- | src/mpris2-controller.vala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala index 0bd5562..94e82d5 100644 --- a/src/mpris2-controller.vala +++ b/src/mpris2-controller.vala @@ -180,4 +180,18 @@ public class Mpris2Controller : GLib.Object this.mpris2_root.Raise.begin(); } } + + public void activate_playlist (ObjectPath path) + { + if(this.playlists == null){ + warning("playlists mpris instance is null !"); + return; + } + try{ + this.playlists.ActivatePlaylist.begin(path); + } + catch(IOError e){ + debug("Could not activate playlist %s because %s", (string)path, e.message); + } + } }
\ No newline at end of file |