aboutsummaryrefslogtreecommitdiff
path: root/src/music-player-bridge.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-07-08 17:47:28 +0100
committerConor Curran <conor.curran@canonical.com>2010-07-08 17:47:28 +0100
commit0f2a6b2736713951fb4b88848e79849a8f1dc72a (patch)
tree100e2d6235254bad950ca2262f3b72f815f1f152 /src/music-player-bridge.vala
parente4f900efd1e48814a70e4351cc3d878312daef37 (diff)
downloadayatana-indicator-sound-0f2a6b2736713951fb4b88848e79849a8f1dc72a.tar.gz
ayatana-indicator-sound-0f2a6b2736713951fb4b88848e79849a8f1dc72a.tar.bz2
ayatana-indicator-sound-0f2a6b2736713951fb4b88848e79849a8f1dc72a.zip
constants replaced and enums and title image now fetched from the mono theme
Diffstat (limited to 'src/music-player-bridge.vala')
-rw-r--r--src/music-player-bridge.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/music-player-bridge.vala b/src/music-player-bridge.vala
index 46723cb..d771192 100644
--- a/src/music-player-bridge.vala
+++ b/src/music-player-bridge.vala
@@ -61,7 +61,7 @@ public class MusicPlayerBridge : GLib.Object
GLib.AppInfo app_info = info as GLib.AppInfo;
PlayerController ctrl = new PlayerController(this.root_menu,
app_info.get_name(),
- PlayerController.OFFLINE);
+ PlayerController.state.OFFLINE);
ctrl.set("app_info", app_info);
this.registered_clients.set(app_info.get_name().down().strip(), ctrl);
debug("Created a player controller for %s which was found in the cache file", app_info.get_name().down().strip());
@@ -84,12 +84,12 @@ 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].update_state(PlayerController.state.READY);
this.registered_clients[client_name].activate();
}
//else init a new one
else{
- PlayerController ctrl = new PlayerController(root_menu, client_name, PlayerController.READY);
+ PlayerController ctrl = new PlayerController(root_menu, client_name, PlayerController.state.READY);
registered_clients.set(client_name, ctrl);
debug("New Client of name %s has successfully registered with us", client_name);
}