diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-08-10 16:18:51 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-08-10 16:18:51 +0100 |
commit | f6de74585f8b091f360debb65f2548cd8bc6ea01 (patch) | |
tree | f33cc4c446c415f013f8f5f6e082a660bab4abf8 /src/music-player-bridge.vala | |
parent | 023090260c73fad2f22c8937fad70215d56319d1 (diff) | |
download | ayatana-indicator-sound-f6de74585f8b091f360debb65f2548cd8bc6ea01.tar.gz ayatana-indicator-sound-f6de74585f8b091f360debb65f2548cd8bc6ea01.tar.bz2 ayatana-indicator-sound-f6de74585f8b091f360debb65f2548cd8bc6ea01.zip |
track specific and player specific fixed
Diffstat (limited to 'src/music-player-bridge.vala')
-rw-r--r-- | src/music-player-bridge.vala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/music-player-bridge.vala b/src/music-player-bridge.vala index 727c36b..72c9bdb 100644 --- a/src/music-player-bridge.vala +++ b/src/music-player-bridge.vala @@ -161,7 +161,12 @@ public class MusicPlayerBridge : GLib.Object public void enable_player_specific_items_for_client (string object_path, string desktop_id) { - // TODO + var mpris_key = determine_key ( desktop_id ); + if (this.registered_clients.has_key (mpris_key) == false){ + warning ("we don't have a client with desktop id %s registered", desktop_id); + return; + } + this.registered_clients[mpris_key].enable_player_specific_items(object_path); } public void enable_track_specific_items_for_client (string object_path, |