aboutsummaryrefslogtreecommitdiff
path: root/src/player-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-14 13:04:21 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-14 13:04:21 +0000
commit5e227767d23fd43fd5504e42d3b80b8076effa15 (patch)
tree0ad11acf2b9ef62da9649238fb07fdaf742e2dcd /src/player-controller.vala
parent014ef9d63fdf4d7213f1a9481d0566a63daa7543 (diff)
downloadayatana-indicator-sound-5e227767d23fd43fd5504e42d3b80b8076effa15.tar.gz
ayatana-indicator-sound-5e227767d23fd43fd5504e42d3b80b8076effa15.tar.bz2
ayatana-indicator-sound-5e227767d23fd43fd5504e42d3b80b8076effa15.zip
expose transport when closed and cache intended action
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r--src/player-controller.vala7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala
index 3ce121e..7e5f38e 100644
--- a/src/player-controller.vala
+++ b/src/player-controller.vala
@@ -145,8 +145,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 +153,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 );
}