aboutsummaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-04-18 15:37:38 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-04-18 15:37:38 -0400
commit914a7600bdc7c6e9a8a7afdf165397cc05113f1a (patch)
treeef9f493d9690fc5143df0b05b23f93e705acff6c /debian/patches
parentd6caaaa548a3ba7d9a82b04fcf692df62769ab62 (diff)
downloadayatana-indicator-sound-914a7600bdc7c6e9a8a7afdf165397cc05113f1a.tar.gz
ayatana-indicator-sound-914a7600bdc7c6e9a8a7afdf165397cc05113f1a.tar.bz2
ayatana-indicator-sound-914a7600bdc7c6e9a8a7afdf165397cc05113f1a.zip
releasing version 0.6.6.1-0ubuntu3
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/lp_750823.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches/lp_750823.patch b/debian/patches/lp_750823.patch
new file mode 100644
index 0000000..837c183
--- /dev/null
+++ b/debian/patches/lp_750823.patch
@@ -0,0 +1,38 @@
+=== modified file 'src/mpris2-controller.vala'
+--- src/mpris2-controller.vala 2011-03-29 10:43:34 +0000
++++ src/mpris2-controller.vala 2011-04-18 19:02:26 +0000
+@@ -83,13 +83,7 @@
+ }
+ Variant? meta_v = changed_properties.lookup("Metadata");
+ if(meta_v != null){
+- GLib.HashTable<string, Variant?> changed_updates = clean_metadata();
+- PlayerItem metadata = this.owner.custom_items[PlayerController.widget_order.METADATA];
+- metadata.reset ( MetadataMenuitem.attributes_format());
+- metadata.update ( changed_updates,
+- MetadataMenuitem.attributes_format());
+- metadata.property_set_bool ( MENUITEM_PROP_VISIBLE,
+- metadata.populated(MetadataMenuitem.attributes_format()));
++ Timeout.add (300, this.ensure_correct_metadata);
+ }
+ Variant? playlist_v = changed_properties.lookup("ActivePlaylist");
+ if ( playlist_v != null && this.owner.use_playlists == true ){
+@@ -113,7 +107,17 @@
+ title.alter_label (this.mpris2_root.Identity);
+ }
+ }
+-
++
++ private bool ensure_correct_metadata(){
++ GLib.HashTable<string, Variant?> changed_updates = clean_metadata();
++ PlayerItem metadata = this.owner.custom_items[PlayerController.widget_order.METADATA];
++ metadata.reset ( MetadataMenuitem.attributes_format());
++ metadata.update ( changed_updates,
++ MetadataMenuitem.attributes_format());
++ metadata.property_set_bool ( MENUITEM_PROP_VISIBLE,
++ metadata.populated(MetadataMenuitem.attributes_format()));
++ return false;
++ }
+ private bool ensure_correct_playback_status(){
+ //debug("TEST playback status = %s", this.player.PlaybackStatus);
+ Transport.State p = (Transport.State)this.determine_play_state(this.player.PlaybackStatus);
+