aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-06-09 12:15:39 +0200
committerConor Curran <conor.curran@canonical.com>2011-06-09 12:15:39 +0200
commit58627767fbd151587a843fd2397f1c293533664a (patch)
treeb3953dd922e99747e8707dcc5dcda55263366d3d /src/mpris2-controller.vala
parentbf2c6d9d1f7ac8897c76b8917f4feaeff54816d6 (diff)
downloadayatana-indicator-sound-58627767fbd151587a843fd2397f1c293533664a.tar.gz
ayatana-indicator-sound-58627767fbd151587a843fd2397f1c293533664a.tar.bz2
ayatana-indicator-sound-58627767fbd151587a843fd2397f1c293533664a.zip
merged the title and metadata at the backend, now for the tricky UI work@
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r--src/mpris2-controller.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala
index 04ceb88..e0d13cf 100644
--- a/src/mpris2-controller.vala
+++ b/src/mpris2-controller.vala
@@ -109,8 +109,8 @@ public class Mpris2Controller : GLib.Object
}
Variant? identity_v = changed_properties.lookup("Identity");
if (identity_v != null){
- TitleMenuitem title = this.owner.custom_items[PlayerController.widget_order.TITLE] as TitleMenuitem;
- title.alter_label (this.mpris2_root.Identity);
+ MetadataMenuitem md = this.owner.custom_items[PlayerController.widget_order.METADATA] as MetadataMenuitem;
+ md.alter_label (this.mpris2_root.Identity);
}
}
@@ -162,8 +162,8 @@ public class Mpris2Controller : GLib.Object
update = determine_play_state (this.player.PlaybackStatus);
}
if (this.mpris2_root.Identity != null){
- TitleMenuitem title = this.owner.custom_items[PlayerController.widget_order.TITLE] as TitleMenuitem;
- title.alter_label (this.mpris2_root.Identity);
+ MetadataMenuitem md = this.owner.custom_items[PlayerController.widget_order.METADATA] as MetadataMenuitem;
+ md.alter_label (this.mpris2_root.Identity);
}
(this.owner.custom_items[PlayerController.widget_order.TRANSPORT] as TransportMenuitem).change_play_state (update);
GLib.HashTable<string, Value?>? cleaned_metadata = this.clean_metadata();