diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-12-09 11:36:33 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-12-09 11:36:33 +0000 |
commit | a964487e2fcd11946b5f95ab36b20cbd1bea4a57 (patch) | |
tree | a294b7afb203aff91b163d533522e36280d20dfd /src/player-controller.vala | |
parent | 0649b09ccf86ea2a158fb24061fc3a142e02f462 (diff) | |
download | ayatana-indicator-sound-a964487e2fcd11946b5f95ab36b20cbd1bea4a57.tar.gz ayatana-indicator-sound-a964487e2fcd11946b5f95ab36b20cbd1bea4a57.tar.bz2 ayatana-indicator-sound-a964487e2fcd11946b5f95ab36b20cbd1bea4a57.zip |
moving towards testing proposed playlists api
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r-- | src/player-controller.vala | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala index 0b540f9..b9e275f 100644 --- a/src/player-controller.vala +++ b/src/player-controller.vala @@ -23,13 +23,14 @@ using Gee; public class PlayerController : GLib.Object { - public const int WIDGET_QUANTITY = 4; + public const int WIDGET_QUANTITY = 5; public static enum widget_order{ SEPARATOR, TITLE, METADATA, TRANSPORT, + PLAYLISTS } public enum state{ @@ -158,7 +159,11 @@ public class PlayerController : GLib.Object // Transport item TransportMenuitem transport_item = new TransportMenuitem(this); this.custom_items.add(transport_item); - + + // Playlist item + PlaylistsMenuitem playlist_menuitem = new PlaylistsMenuitem(this); + this.custom_items.add(playlist_menuitem); + foreach(PlayerItem item in this.custom_items){ root_menu.child_add_position(item, this.menu_offset + this.custom_items.index_of(item)); } @@ -184,7 +189,7 @@ public class PlayerController : GLib.Object this.update_state(state.CONNECTED); TitleMenuitem title = this.custom_items[widget_order.TITLE] as TitleMenuitem; title.toggle_active_triangle(true); - this.mpris_bridge.initial_update(); + this.mpris_bridge.initial_update(); } else{ this.update_state(state.DISCONNECTED); |