diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-07-13 12:18:08 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-07-13 12:18:08 +0100 |
commit | 4325e0092d77cc2d993c7305c49d0517f3defb0e (patch) | |
tree | c3ed0eba5a33b8e55b104f8eb9b25f868c9fe3b1 /src/mpris-controller.vala | |
parent | f383ead1168dde3374dabc2040035907d4ab484d (diff) | |
download | ayatana-indicator-sound-4325e0092d77cc2d993c7305c49d0517f3defb0e.tar.gz ayatana-indicator-sound-4325e0092d77cc2d993c7305c49d0517f3defb0e.tar.bz2 ayatana-indicator-sound-4325e0092d77cc2d993c7305c49d0517f3defb0e.zip |
prep work done for scrub bar
Diffstat (limited to 'src/mpris-controller.vala')
-rw-r--r-- | src/mpris-controller.vala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mpris-controller.vala b/src/mpris-controller.vala index 8dd0cc9..c3f21d8 100644 --- a/src/mpris-controller.vala +++ b/src/mpris-controller.vala @@ -56,8 +56,8 @@ public class MprisController : GLib.Object status st = this.mpris_player.GetStatus(); int play_state = st.playback; debug("GetStatusChange - play state %i", play_state); - (this.owner.custom_items[this.owner.TRANSPORT] as TransportMenuitem).change_play_state(play_state); - this.owner.custom_items[this.owner.METADATA].update(this.mpris_player.GetMetadata(), + (this.owner.custom_items[PlayerController.widget_order.TRANSPORT] as TransportMenuitem).change_play_state(play_state); + this.owner.custom_items[PlayerController.widget_order.METADATA].update(this.mpris_player.GetMetadata(), MetadataMenuitem.attributes_format()); } @@ -66,8 +66,8 @@ public class MprisController : GLib.Object private void onTrackChange(dynamic DBus.Object mpris_client, HashTable<string,Value?> ht) { debug("onTrackChange"); - this.owner.custom_items[this.owner.METADATA].reset(MetadataMenuitem.attributes_format()); - this.owner.custom_items[this.owner.METADATA].update(ht, + this.owner.custom_items[PlayerController.widget_order.METADATA].reset(MetadataMenuitem.attributes_format()); + this.owner.custom_items[PlayerController.widget_order.METADATA].update(ht, MetadataMenuitem.attributes_format()); } @@ -117,7 +117,7 @@ public class MprisController : GLib.Object Value v = Value(typeof(int)); v.set_int(play_state); ht.insert("state", v); - this.owner.custom_items[this.owner.TRANSPORT].update(ht, TransportMenuitem.attributes_format()); + this.owner.custom_items[PlayerController.widget_order.TRANSPORT].update(ht, TransportMenuitem.attributes_format()); } |