diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-06-21 16:25:16 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-06-21 16:25:16 +0100 |
commit | 7be2c7248a0b29ea74e8e36db405d5974995a57b (patch) | |
tree | 694e0fc9fa91ff83d842508f9e1b830a5e66b75b /src/player-item.vala | |
parent | 87445b8921774ec705b4bb62429a5f69be941737 (diff) | |
download | ayatana-indicator-sound-7be2c7248a0b29ea74e8e36db405d5974995a57b.tar.gz ayatana-indicator-sound-7be2c7248a0b29ea74e8e36db405d5974995a57b.tar.bz2 ayatana-indicator-sound-7be2c7248a0b29ea74e8e36db405d5974995a57b.zip |
going for generic property updates
Diffstat (limited to 'src/player-item.vala')
-rw-r--r-- | src/player-item.vala | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/player-item.vala b/src/player-item.vala index aa35b33..10dedc2 100644 --- a/src/player-item.vala +++ b/src/player-item.vala @@ -26,15 +26,17 @@ public class PlayerItem : Dbusmenu.Menuitem public MprisController mpris_adaptor; public PlayerItem() - { + { } - public virtual void update(HashMap<string, Value?> data) + public void update(HashMap<string, Value?> data, Type type) { debug("PlayerItem::update()"); - //foreach(var key in this.attributes().keys){ - // this.attributes.get(key); - //} + HashMap<string, Type> attributes = type.attributes_format(); + foreach(var property in data){ + //property.value as attributes.get(property.key) + //this.property_set(property.key, ); + } } public void set_adaptor(MprisController adaptor) @@ -58,8 +60,6 @@ public class PlayerItem : Dbusmenu.Menuitem PlayerItem separator = new PlayerItem(); separator.property_set(MENUITEM_PROP_TYPE, CLIENT_TYPES_SEPARATOR); return separator; - } - - + } } |