aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-07-07 13:36:56 +0100
committerConor Curran <conor.curran@canonical.com>2010-07-07 13:36:56 +0100
commitcaf13b4dccb20aff410ffc0da63c298cabbcca5f (patch)
treef60e93fb96d0f2a3bdd0f5faa05dfcd158b99679
parent410965575fa1039cbcc6c6ef7f7ef316438118ed (diff)
downloadayatana-indicator-sound-caf13b4dccb20aff410ffc0da63c298cabbcca5f.tar.gz
ayatana-indicator-sound-caf13b4dccb20aff410ffc0da63c298cabbcca5f.tar.bz2
ayatana-indicator-sound-caf13b4dccb20aff410ffc0da63c298cabbcca5f.zip
fixed the mpris connection problems
-rw-r--r--src/music-player-bridge.vala1
-rw-r--r--src/player-controller.vala2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/music-player-bridge.vala b/src/music-player-bridge.vala
index 77341a4..46723cb 100644
--- a/src/music-player-bridge.vala
+++ b/src/music-player-bridge.vala
@@ -84,6 +84,7 @@ public class MusicPlayerBridge : GLib.Object
// If we have an instance already for this player, ensure it is switched to active
if(this.registered_clients.keys.contains(client_name)){
debug("It figured out that it already has an instance for this player already");
+ this.registered_clients[client_name].update_state(PlayerController.READY);
this.registered_clients[client_name].activate();
}
//else init a new one
diff --git a/src/player-controller.vala b/src/player-controller.vala
index 75c251c..88dc3a7 100644
--- a/src/player-controller.vala
+++ b/src/player-controller.vala
@@ -60,7 +60,6 @@ public class PlayerController : GLib.Object
public void activate()
{
- debug("about to try to establish an mpris connection");
this.establish_mpris_connection();
this.custom_items[METADATA].property_set_bool(MENUITEM_PROP_VISIBLE, true);
}
@@ -95,6 +94,7 @@ public class PlayerController : GLib.Object
else{
this.update_state(DISCONNECTED);
}
+ this.update_layout();
}
public void vanish()