aboutsummaryrefslogtreecommitdiff
path: root/src/music-player-bridge.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-11-05 17:30:19 +0000
committerConor Curran <conor.curran@canonical.com>2010-11-05 17:30:19 +0000
commit1196f5060e633fac46b724844e1b6817c889145a (patch)
treea05786721729c1148566a896c6f642f176675f3a /src/music-player-bridge.vala
parenta01af1b6d6f42775e9e436d802913c061b51278e (diff)
parent2f409b95c5c1c0c7107f4503c01687b3a913780f (diff)
downloadayatana-indicator-sound-1196f5060e633fac46b724844e1b6817c889145a.tar.gz
ayatana-indicator-sound-1196f5060e633fac46b724844e1b6817c889145a.tar.bz2
ayatana-indicator-sound-1196f5060e633fac46b724844e1b6817c889145a.zip
Initial UI tweaks for natty
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);