diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-08-25 15:18:45 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-08-25 15:18:45 +0100 |
commit | 0cfad99ce347f365d52783a2f3543b25acc94706 (patch) | |
tree | f6e4643b26b96e968d96eb2060861247d5279e18 /src/player-controller.vala | |
parent | 5c225cc9608267ce25d599c279271eb5b7ee7a19 (diff) | |
download | ayatana-indicator-sound-0cfad99ce347f365d52783a2f3543b25acc94706.tar.gz ayatana-indicator-sound-0cfad99ce347f365d52783a2f3543b25acc94706.tar.bz2 ayatana-indicator-sound-0cfad99ce347f365d52783a2f3543b25acc94706.zip |
fonts sorted
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r-- | src/player-controller.vala | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala index 2aa4382..3e12dce 100644 --- a/src/player-controller.vala +++ b/src/player-controller.vala @@ -23,13 +23,12 @@ using Gee; public class PlayerController : GLib.Object { - public const int WIDGET_QUANTITY = 5; + public const int WIDGET_QUANTITY = 4; public static enum widget_order{ SEPARATOR, TITLE, METADATA, - SCRUB, TRANSPORT, } @@ -114,25 +113,19 @@ public class PlayerController : GLib.Object update_state(PlayerController.state.OFFLINE); this.custom_items[widget_order.TRANSPORT].reset(TransportMenuitem.attributes_format()); this.custom_items[widget_order.METADATA].reset(MetadataMenuitem.attributes_format()); - this.custom_items[widget_order.SCRUB].reset(ScrubMenuitem.attributes_format()); } public void update_layout() - { - + { if(this.current_state != state.CONNECTED){ this.custom_items[widget_order.TRANSPORT].property_set_bool(MENUITEM_PROP_VISIBLE, false); - this.custom_items[widget_order.SCRUB].property_set_bool(MENUITEM_PROP_VISIBLE, - false); this.custom_items[widget_order.METADATA].property_set_bool(MENUITEM_PROP_VISIBLE, false); return; } 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.SCRUB].property_set_bool(MENUITEM_PROP_VISIBLE, - this.custom_items[widget_order.SCRUB].populated(ScrubMenuitem.attributes_format())); this.custom_items[widget_order.TRANSPORT].property_set_bool(MENUITEM_PROP_VISIBLE, true); } @@ -150,10 +143,6 @@ public class PlayerController : GLib.Object MetadataMenuitem metadata_item = new MetadataMenuitem(); this.custom_items.add(metadata_item); - // Scrub item - ScrubMenuitem scrub_item = new ScrubMenuitem(this); - this.custom_items.add(scrub_item); - // Transport item TransportMenuitem transport_item = new TransportMenuitem(this); this.custom_items.add(transport_item); |