aboutsummaryrefslogtreecommitdiff
path: root/src/player-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-14 15:41:18 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-14 15:41:18 +0000
commit8149cc1e2de25648a2a4271e503bdd6184b7af50 (patch)
treefbaec3687cc84ddf1dc45bbc2f6e8b6454ab8e9e /src/player-controller.vala
parent5e227767d23fd43fd5504e42d3b80b8076effa15 (diff)
downloadayatana-indicator-sound-8149cc1e2de25648a2a4271e503bdd6184b7af50.tar.gz
ayatana-indicator-sound-8149cc1e2de25648a2a4271e503bdd6184b7af50.tar.bz2
ayatana-indicator-sound-8149cc1e2de25648a2a4271e503bdd6184b7af50.zip
working as good as this will ever be considering the poor startup performances of clients
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r--src/player-controller.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala
index 7e5f38e..020109d 100644
--- a/src/player-controller.vala
+++ b/src/player-controller.vala
@@ -133,7 +133,8 @@ public class PlayerController : GLib.Object
public void hibernate()
{
update_state(PlayerController.state.OFFLINE);
- this.custom_items[widget_order.TRANSPORT].reset(TransportMenuitem.attributes_format());
+ TransportMenuitem transport = this.custom_items[widget_order.TRANSPORT] as TransportMenuitem;
+ transport.change_play_state (Transport.State.PAUSED);
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);