aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-05-03 14:14:01 -0700
committerCharles Kerr <charles.kerr@canonical.com>2012-05-03 14:14:01 -0700
commit7d4792274560f8cc4738280f2f0fd88387df47cc (patch)
tree49719fc139f1825161d77e3398673c2de1a9f85d
parent5a64bab16ee6f5eb989c838ca2dce791c54501f3 (diff)
parentc172666fbbd2bbb021e34bc625973ec4fe49178c (diff)
downloadayatana-indicator-sound-7d4792274560f8cc4738280f2f0fd88387df47cc.tar.gz
ayatana-indicator-sound-7d4792274560f8cc4738280f2f0fd88387df47cc.tar.bz2
ayatana-indicator-sound-7d4792274560f8cc4738280f2f0fd88387df47cc.zip
merge lp:~cjcurran/indicator-sound/lp-992262-fix to fix sound indicator not working after amarok close
-rw-r--r--src/music-player-bridge.vala11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/music-player-bridge.vala b/src/music-player-bridge.vala
index 18f1c40..bd69668 100644
--- a/src/music-player-bridge.vala
+++ b/src/music-player-bridge.vala
@@ -163,7 +163,6 @@ public class MusicPlayerBridge : GLib.Object
}
var mpris_key = determine_key ( desktop );
- // Are we sure clients will appear like this with the new registration method in place.
if ( this.registered_clients.has_key (mpris_key) == false ){
debug("New client has registered that we have not seen before: %s", dbus_name );
PlayerController ctrl = new PlayerController ( this.root_menu,
@@ -189,14 +188,14 @@ public class MusicPlayerBridge : GLib.Object
public void client_has_vanished ( string mpris_root_interface )
{
- debug("MusicPlayerBridge -> client with dbus interface %s has vanished",
+ debug("\n MusicPlayerBridge -> client with dbus interface %s has vanished",
mpris_root_interface );
if (root_menu != null){
- debug("attempt to remove %s", mpris_root_interface);
+ debug("\n attempt to remove %s", mpris_root_interface);
var mpris_key = determine_key ( mpris_root_interface );
if ( mpris_key != null && this.registered_clients.has_key(mpris_key)){
registered_clients[mpris_key].hibernate();
- debug("Successively offlined client %s", mpris_key);
+ debug("\n Successively offlined client %s", mpris_key);
}
}
}
@@ -286,8 +285,8 @@ public class MusicPlayerBridge : GLib.Object
}
var temp = result.split("-");
if (temp != null && temp.length > 1){
- result = temp[0];
- }
+ result = temp[1];
+ }
return result;
}