diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-09-08 16:10:36 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-09-08 16:10:36 +0100 |
commit | 3bc35728a37c2a9453a262f49175f5bd87297958 (patch) | |
tree | 5ff3da7977395829c5d396d2d765bb4572fdc28d /src/player-controller.vala | |
parent | dad11c32d68b0f09eb52232a3d3da300e2e63702 (diff) | |
parent | 1f038d6725571f8e80530a96112d427d5b051022 (diff) | |
download | ayatana-indicator-sound-3bc35728a37c2a9453a262f49175f5bd87297958.tar.gz ayatana-indicator-sound-3bc35728a37c2a9453a262f49175f5bd87297958.tar.bz2 ayatana-indicator-sound-3bc35728a37c2a9453a262f49175f5bd87297958.zip |
player title icon now in the gutter
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r-- | src/player-controller.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala index 4d9f054..f5ec205 100644 --- a/src/player-controller.vala +++ b/src/player-controller.vala @@ -116,6 +116,8 @@ public class PlayerController : GLib.Object update_state(PlayerController.state.OFFLINE); this.custom_items[widget_order.TRANSPORT].reset(TransportMenuitem.attributes_format()); this.custom_items[widget_order.METADATA].reset(MetadataMenuitem.attributes_format()); + TitleMenuitem title = this.custom_items[widget_order.TITLE] as TitleMenuitem; + title.toggle_active_triangle(false); } public void update_layout() @@ -172,6 +174,10 @@ public class PlayerController : GLib.Object { if(this.mpris_bridge.connected() == true){ this.update_state(state.CONNECTED); + TitleMenuitem title = this.custom_items[widget_order.TITLE] as TitleMenuitem; + title.toggle_active_triangle(true); + TransportMenuitem transport = this.custom_items[widget_order.TRANSPORT] as TransportMenuitem; + transport.change_play_state(TransportMenuitem.state.PAUSED); } else{ this.update_state(state.DISCONNECTED); |