diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-09-10 14:16:17 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-09-10 14:16:17 +0100 |
commit | dccb5ee61daf69b4621685362c7f89811561dbb1 (patch) | |
tree | 3d9786c3d1843f829db0882b307f2998e11980d2 /src/mpris2-controller.vala | |
parent | c5d9ac1900b094287dd18a347dd62a04e153bbdb (diff) | |
parent | ac27a7a650aba27b1dd73eaaffc7629fa1a650e0 (diff) | |
download | ayatana-indicator-sound-dccb5ee61daf69b4621685362c7f89811561dbb1.tar.gz ayatana-indicator-sound-dccb5ee61daf69b4621685362c7f89811561dbb1.tar.bz2 ayatana-indicator-sound-dccb5ee61daf69b4621685362c7f89811561dbb1.zip |
merge ui updates, banshee fix and theme change handling
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r-- | src/mpris2-controller.vala | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala index dab5e2c..5f284b2 100644 --- a/src/mpris2-controller.vala +++ b/src/mpris2-controller.vala @@ -53,7 +53,9 @@ public interface MprisPlayer : DBus.Object { [DBus (name = "org.freedesktop.DBus.Properties")] public interface FreeDesktopProperties : DBus.Object{ // signals - public signal void PropertiesChanged(string source, HashTable<string, Value?> changed_properties, string[] invalid); + public signal void PropertiesChanged(string source, HashTable<string, + Value?> changed_properties, + string[] invalid); } /* @@ -85,8 +87,7 @@ public class Mpris2Controller : GLib.Object this.player.Seeked += onSeeked; this.properties_interface = (FreeDesktopProperties) connection.get_object(root_interface.concat(".").concat(this.owner.name.down()), - "/org/mpris/MediaPlayer2", - "org.freedesktop.DBus.Properties"); + "/org/mpris/MediaPlayer2"); this.properties_interface.PropertiesChanged += property_changed_cb; } catch (DBus.Error e) { @@ -97,7 +98,10 @@ public class Mpris2Controller : GLib.Object public void property_changed_cb(string interface_source, HashTable<string, Value?> changed_properties, string[] invalid ) { debug("properties-changed for interface %s and owner %s", interface_source, this.owner.name.down()); - if(changed_properties == null || interface_source.has_prefix(this.root_interface) == false){ + debug("is the invalid array null : %s", (invalid == null).to_string()); + debug("invalid length : %i", invalid.length); + + if(changed_properties == null || interface_source.has_prefix(this.root_interface) == false ){ warning("Property-changed hash is null or this is an interface that concerns us"); return; } |