diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-10-14 17:58:42 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-10-14 17:58:42 +0100 |
commit | e2792ab0a1dfd8ca0c96b59b675fa09e8cd0e5d7 (patch) | |
tree | af40bb6796cdb9b60c182bfe7d572b95dc649b3f /src/music-player-bridge.vala | |
parent | 000862e2eae0d894e1f81df6b13c14d19f407d48 (diff) | |
download | ayatana-indicator-sound-e2792ab0a1dfd8ca0c96b59b675fa09e8cd0e5d7.tar.gz ayatana-indicator-sound-e2792ab0a1dfd8ca0c96b59b675fa09e8cd0e5d7.tar.bz2 ayatana-indicator-sound-e2792ab0a1dfd8ca0c96b59b675fa09e8cd0e5d7.zip |
moving towards getting the icon across the divide
Diffstat (limited to 'src/music-player-bridge.vala')
-rw-r--r-- | src/music-player-bridge.vala | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/music-player-bridge.vala b/src/music-player-bridge.vala index 9ba4ef6..e109dec 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; @@ -61,8 +60,12 @@ public class MusicPlayerBridge : GLib.Object calculate_menu_position(), PlayerController.state.OFFLINE); ctrl.app_info = app_info; - if(ctrl.app_info == null) + if(ctrl.app_info == null){ warning("for some reason the app info is null"); + } + else{ + ctrl.set_icon_path(); + } this.registered_clients.set(determine_key(app), ctrl); } } @@ -102,6 +105,13 @@ public class MusicPlayerBridge : GLib.Object bridge.calculate_menu_position(), PlayerController.state.READY); ctrl.set("app_info", app_info); + if(ctrl.app_info == null){ + warning("for some reason the app info is null"); + } + else{ + ctrl.set_icon_path(); + } + bridge.registered_clients.set(determine_key(path), ctrl); debug("successfully created appinfo and instance from path and set it on the respective instance"); } |