aboutsummaryrefslogtreecommitdiff
path: root/src/music-player-bridge.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-11-05 18:15:22 +0000
committerConor Curran <conor.curran@canonical.com>2010-11-05 18:15:22 +0000
commit0c9af5cd3155b11816d0ecf9ff6f48f4ecc4b940 (patch)
tree4f2fb85e858b0e57613149ee01f1f47f3ea97107 /src/music-player-bridge.vala
parenta01af1b6d6f42775e9e436d802913c061b51278e (diff)
parentdd80c00e460cf1857eb8a76b62e2058b49f62d88 (diff)
downloadayatana-indicator-sound-0c9af5cd3155b11816d0ecf9ff6f48f4ecc4b940.tar.gz
ayatana-indicator-sound-0c9af5cd3155b11816d0ecf9ff6f48f4ecc4b940.tar.bz2
ayatana-indicator-sound-0c9af5cd3155b11816d0ecf9ff6f48f4ecc4b940.zip
merged the initial UI work for nattyA
Diffstat (limited to 'src/music-player-bridge.vala')
-rw-r--r--src/music-player-bridge.vala6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/music-player-bridge.vala b/src/music-player-bridge.vala
index 4bb0e6b..f13c2f4 100644
--- a/src/music-player-bridge.vala
+++ b/src/music-player-bridge.vala
@@ -24,7 +24,6 @@ using GLib;
public class MusicPlayerBridge : GLib.Object
{
-
private Listener listener;
private Dbusmenu.Menuitem root_menu;
private HashMap<string, PlayerController> registered_clients;
@@ -51,7 +50,7 @@ public class MusicPlayerBridge : GLib.Object
DesktopAppInfo info = new DesktopAppInfo.from_filename(app);
if(info == null){
- warning("Could not create a desktopappinfo instance from app: %s", app);
+ warning("Could not create a desktopappinfo instance from app,: %s , moving on to the next client", app);
continue;
}
@@ -60,6 +59,7 @@ public class MusicPlayerBridge : GLib.Object
PlayerController ctrl = new PlayerController(this.root_menu,
app_info,
mpris_key,
+ playersDB.fetch_icon_name(app),
calculate_menu_position(),
PlayerController.state.OFFLINE);
this.registered_clients.set(mpris_key, ctrl);
@@ -105,9 +105,11 @@ public class MusicPlayerBridge : GLib.Object
PlayerController ctrl = new PlayerController ( bridge.root_menu,
app_info,
mpris_key,
+ playersDB.fetch_icon_name(path),
bridge.calculate_menu_position(),
PlayerController.state.READY );
bridge.registered_clients.set(mpris_key, ctrl);
+ debug("successfully created appinfo and instance from path and set it on the respective instance");
}
else{
bridge.registered_clients[mpris_key].update_state(PlayerController.state.READY);