diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-06-10 11:38:54 +0200 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-06-10 11:38:54 +0200 |
commit | e0761ddf73f224b880adea3f226463eb7a996ec6 (patch) | |
tree | 4ed1cd077dcf92c5e1a246887e4ae603edeb8e0e /src/player-controller.vala | |
parent | a406685399b46b4b2a62b8e580ce7beec2f875f4 (diff) | |
download | ayatana-indicator-sound-e0761ddf73f224b880adea3f226463eb7a996ec6.tar.gz ayatana-indicator-sound-e0761ddf73f224b880adea3f226463eb7a996ec6.tar.bz2 ayatana-indicator-sound-e0761ddf73f224b880adea3f226463eb7a996ec6.zip |
label appearing dynamic resizing partially working
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r-- | src/player-controller.vala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala index a7c1424..3722fff 100644 --- a/src/player-controller.vala +++ b/src/player-controller.vala @@ -144,19 +144,19 @@ public class PlayerController : GLib.Object public void update_layout() { PlaylistsMenuitem playlists_menuitem = this.custom_items[widget_order.PLAYLISTS] as PlaylistsMenuitem; + MetadataMenuitem metadata_menuitem = this.custom_items[widget_order.METADATA] as MetadataMenuitem; if(this.current_state != state.CONNECTED){ // TODO - // For now just set the visibility to true so that I can figure out what todo here. - this.custom_items[widget_order.METADATA].property_set_bool (MENUITEM_PROP_VISIBLE, - true); + metadata_menuitem.collapse (); playlists_menuitem.root_item.property_set_bool (MENUITEM_PROP_VISIBLE, false ); this.custom_items[widget_order.TRANSPORT].property_set_bool (MENUITEM_PROP_VISIBLE, this.app_info.get_id() == "banshee.desktop"); return; } - this.custom_items[widget_order.METADATA].property_set_bool (MENUITEM_PROP_VISIBLE, - this.custom_items[widget_order.METADATA].populated(MetadataMenuitem.attributes_format())); + metadata_menuitem.expand (); + /*this.custom_items[widget_order.METADATA].property_set_bool (MENUITEM_PROP_VISIBLE, + this.custom_items[widget_order.METADATA].populated(MetadataMenuitem.attributes_format()));*/ if (this.app_info.get_id() == "banshee.desktop"){ TransportMenuitem transport = this.custom_items[widget_order.TRANSPORT] as TransportMenuitem; transport.handle_cached_action(); |