aboutsummaryrefslogtreecommitdiff
path: root/src/player-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-16 13:18:27 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-16 13:18:27 +0000
commit2937537d66777034bb2fdfd23200acfb5b8de042 (patch)
treef73acd34418ef96a6ceadce0040a8f52fd41eba9 /src/player-controller.vala
parent58facf2f0db4e60a78f101c6d6273b4331981deb (diff)
parent8149cc1e2de25648a2a4271e503bdd6184b7af50 (diff)
downloadayatana-indicator-sound-2937537d66777034bb2fdfd23200acfb5b8de042.tar.gz
ayatana-indicator-sound-2937537d66777034bb2fdfd23200acfb5b8de042.tar.bz2
ayatana-indicator-sound-2937537d66777034bb2fdfd23200acfb5b8de042.zip
uptodate trunk and branch work from the start of the week merged@
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r--src/player-controller.vala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala
index 3ce121e..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);
@@ -145,8 +146,6 @@ public class PlayerController : GLib.Object
PlaylistsMenuitem playlists_menuitem = this.custom_items[widget_order.PLAYLISTS] as PlaylistsMenuitem;
if(this.current_state != state.CONNECTED){
- this.custom_items[widget_order.TRANSPORT].property_set_bool(MENUITEM_PROP_VISIBLE,
- false);
this.custom_items[widget_order.METADATA].property_set_bool(MENUITEM_PROP_VISIBLE,
false);
playlists_menuitem.root_item.property_set_bool ( MENUITEM_PROP_VISIBLE,
@@ -155,8 +154,9 @@ public class PlayerController : GLib.Object
}
this.custom_items[widget_order.METADATA].property_set_bool(MENUITEM_PROP_VISIBLE,
this.custom_items[widget_order.METADATA].populated(MetadataMenuitem.attributes_format()));
- this.custom_items[widget_order.TRANSPORT].property_set_bool(MENUITEM_PROP_VISIBLE,
- true);
+ TransportMenuitem transport = this.custom_items[widget_order.TRANSPORT] as TransportMenuitem;
+ transport.handle_cached_action();
+
playlists_menuitem.root_item.property_set_bool ( MENUITEM_PROP_VISIBLE,
this.use_playlists );
}