aboutsummaryrefslogtreecommitdiff
path: root/src/player-controller.vala
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-09-28 15:17:30 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-09-28 15:17:30 -0400
commite92bccafd8bc17ca37d48e78d497e1001dbaef80 (patch)
tree98e69ce3ea129c396840ef69a1feae40b01b5529 /src/player-controller.vala
parent8b55a10546bbdee8fe0fa0088d751f885068ca94 (diff)
parentbf90e843f9ecc907ab917d3d3b540014137d6964 (diff)
downloadayatana-indicator-sound-e92bccafd8bc17ca37d48e78d497e1001dbaef80.tar.gz
ayatana-indicator-sound-e92bccafd8bc17ca37d48e78d497e1001dbaef80.tar.bz2
ayatana-indicator-sound-e92bccafd8bc17ca37d48e78d497e1001dbaef80.zip
releasing version 0.7.8-0ubuntu1
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r--src/player-controller.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala
index ced7d96..04d0bf9 100644
--- a/src/player-controller.vala
+++ b/src/player-controller.vala
@@ -24,12 +24,14 @@ public class PlayerController : GLib.Object
{
public const int WIDGET_QUANTITY = 4;
- public static enum widget_order{
+ public enum widget_order{
SEPARATOR,
METADATA,
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));
}