diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-09-09 18:56:53 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-09-09 18:56:53 +0100 |
commit | 006dd7249ec75af061b289f38d62aa6589d07cb2 (patch) | |
tree | bc6a502c84d801167ceb3c6b7e6a54ded0bfeb23 /src/player-controller.vala | |
parent | 9f05fc93fc37dd326a68174be212cc23d270e00d (diff) | |
parent | 41e5d2ef85dd8f53a70464affdb9bbcab441f788 (diff) | |
download | ayatana-indicator-sound-006dd7249ec75af061b289f38d62aa6589d07cb2.tar.gz ayatana-indicator-sound-006dd7249ec75af061b289f38d62aa6589d07cb2.tar.bz2 ayatana-indicator-sound-006dd7249ec75af061b289f38d62aa6589d07cb2.zip |
merge playlist fixes
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r-- | src/player-controller.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala index 2f5569c..04d0bf9 100644 --- a/src/player-controller.vala +++ b/src/player-controller.vala @@ -30,6 +30,8 @@ public class PlayerController : GLib.Object TRANSPORT, PLAYLISTS } + + public enum state{ OFFLINE, @@ -169,11 +171,9 @@ public class PlayerController : GLib.Object public void update_layout() { - debug ("a call to 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 metadata_menuitem.should_collapse (true); playlists_menuitem.root_item.property_set_bool (MENUITEM_PROP_VISIBLE, false ); @@ -212,7 +212,7 @@ public class PlayerController : GLib.Object this.custom_items.add(playlist_menuitem); foreach(PlayerItem item in this.custom_items){ - if (this.custom_items.index_of(item) == 4) { + if (this.custom_items.index_of(item) == WIDGET_QUANTITY-1) { PlaylistsMenuitem playlists_menuitem = item as PlaylistsMenuitem; root_menu.child_add_position(playlists_menuitem.root_item, this.menu_offset + this.custom_items.index_of(item)); } |