aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-06-13 12:04:15 +0200
committerConor Curran <conor.curran@canonical.com>2011-06-13 12:04:15 +0200
commitec14b8310dd5b02ed749c2cfade5c1a45ef00bac (patch)
treebf9c38d689580d1a7911b0c6b7042d33e99b379d /src/mpris2-controller.vala
parentedd58e6f87bd80a4e37eac90b42b03528aba44ee (diff)
downloadayatana-indicator-sound-ec14b8310dd5b02ed749c2cfade5c1a45ef00bac.tar.gz
ayatana-indicator-sound-ec14b8310dd5b02ed749c2cfade5c1a45ef00bac.tar.bz2
ayatana-indicator-sound-ec14b8310dd5b02ed749c2cfade5c1a45ef00bac.zip
number of bugs fixed, more to come
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r--src/mpris2-controller.vala11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala
index e0d13cf..7e128dd 100644
--- a/src/mpris2-controller.vala
+++ b/src/mpris2-controller.vala
@@ -84,12 +84,17 @@ public class Mpris2Controller : GLib.Object
Variant? meta_v = changed_properties.lookup("Metadata");
if(meta_v != null){
GLib.HashTable<string, Variant?> changed_updates = clean_metadata();
+ //MetadataMenuitem md = this.owner.custom_items[PlayerController.widget_order.METADATA] as MetadataMenuitem;
+ //md.reset_track_details ();
+
PlayerItem metadata = this.owner.custom_items[PlayerController.widget_order.METADATA];
- metadata.reset ( MetadataMenuitem.attributes_format());
+ metadata.reset (MetadataMenuitem.relevant_attributes_for_ui());
metadata.update ( changed_updates,
MetadataMenuitem.attributes_format());
- metadata.property_set_bool ( MENUITEM_PROP_VISIBLE,
- metadata.populated(MetadataMenuitem.attributes_format()));
+ /*metadata.property_set_bool ( MENUITEM_PROP_VISIBLE,
+ metadata.populated(MetadataMenuitem.relevant_attributes_for_ui()));*/
+ debug ("metadata visibility = %s",
+ metadata.populated (MetadataMenuitem.relevant_attributes_for_ui()).to_string());
}
Variant? playlist_v = changed_properties.lookup("ActivePlaylist");
if ( playlist_v != null && this.owner.use_playlists == true ){