aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-06-13 14:41:41 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-06-13 14:41:41 -0400
commit911f43fa48dd296006963ee5e5e956cbfd509ffc (patch)
treec42916c5fcebf2fa504b9316203733c174f89cde
parent4f98702c1012ee633f477c7218d9aaf15c5313c6 (diff)
downloadayatana-indicator-sound-911f43fa48dd296006963ee5e5e956cbfd509ffc.tar.gz
ayatana-indicator-sound-911f43fa48dd296006963ee5e5e956cbfd509ffc.tar.bz2
ayatana-indicator-sound-911f43fa48dd296006963ee5e5e956cbfd509ffc.zip
Player menu item: export application icon
-rw-r--r--src/service.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/service.vala b/src/service.vala
index d42e267..945dc6f 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -197,6 +197,7 @@ public class IndicatorSound.Service {
void player_added (MediaPlayer player) {
var item = new MenuItem (player.name, "indicator." + player.id);
item.set_attribute ("x-canonical-type", "s", "com.canonical.unity.media-player");
+ item.set_attribute_value ("icon", g_icon_serialize (player.icon));
this.menu.insert_item (this.menu.get_n_items () -1, item);
SimpleAction action = new SimpleAction.stateful (player.id, null, this.action_state_for_player (player));