diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-06-21 19:36:21 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-06-21 19:36:21 +0100 |
commit | 6e001f4e0606bce9d3eb070df97d44a7b10081c5 (patch) | |
tree | 74373818cebb4d313b7d6d7988b104e8e2ff85c5 /src/mpris-controller.vala | |
parent | 7be2c7248a0b29ea74e8e36db405d5974995a57b (diff) | |
download | ayatana-indicator-sound-6e001f4e0606bce9d3eb070df97d44a7b10081c5.tar.gz ayatana-indicator-sound-6e001f4e0606bce9d3eb070df97d44a7b10081c5.tar.bz2 ayatana-indicator-sound-6e001f4e0606bce9d3eb070df97d44a7b10081c5.zip |
wip
Diffstat (limited to 'src/mpris-controller.vala')
-rw-r--r-- | src/mpris-controller.vala | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mpris-controller.vala b/src/mpris-controller.vala index 98473ad..c71662a 100644 --- a/src/mpris-controller.vala +++ b/src/mpris-controller.vala @@ -44,17 +44,18 @@ public class MprisController : GLib.Object this.mpris_player = this.connection.get_object ("org.mpris.".concat(name.down()) , "/Player", mpris_interface); this.mpris_player.TrackChange += onTrackChange; this.mpris_player.StatusChange += onStatusChange; - this.controller.update_playing_info(get_track_data()); + //this.controller.update_playing_info(get_track_data()); } - public HashMap<string, string> get_track_data() - { - return format_metadata(this.mpris_player.GetMetadata()); - } + //public HashMap<string, string> get_track_data() + //{ + //return format_metadata(this.mpris_player.GetMetadata()); + //} private void onTrackChange(dynamic DBus.Object mpris_client, HashTable<string,Value?> ht) { - this.controller.update_playing_info(MetadataMenuitem.format_updates(ht)); + this.controller.custom_items[this.controller.METADATA].update(ht, + MetadataMenuitem.attributes_format()); } /** |