diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2010-09-08 17:53:33 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2010-09-08 17:53:33 +0200 |
commit | 75f6c6bfa400649014ed90d87e57d5bf4b542f31 (patch) | |
tree | a9bab54f4429e41d065e4292c99dfa1f29f79068 /src/player-controller.vala | |
parent | b347212eb1cb41fb9739a9873b0ff8eb8abb4b77 (diff) | |
download | ayatana-indicator-sound-75f6c6bfa400649014ed90d87e57d5bf4b542f31.tar.gz ayatana-indicator-sound-75f6c6bfa400649014ed90d87e57d5bf4b542f31.tar.bz2 ayatana-indicator-sound-75f6c6bfa400649014ed90d87e57d5bf4b542f31.zip |
Import upstream version 0.4.3
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); |