diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-10-14 12:45:32 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-10-14 12:45:32 +0100 |
commit | 70d0835c44d70ab88c1553d5a1263d6593ad3f36 (patch) | |
tree | 6bc12c4b1da8e645b1e1708f404350247d929156 /src/mpris2-controller.vala | |
parent | 7ea2deb67919da59bbeab00e3b4e244c8395ff58 (diff) | |
download | ayatana-indicator-sound-70d0835c44d70ab88c1553d5a1263d6593ad3f36.tar.gz ayatana-indicator-sound-70d0835c44d70ab88c1553d5a1263d6593ad3f36.tar.bz2 ayatana-indicator-sound-70d0835c44d70ab88c1553d5a1263d6593ad3f36.zip |
fixed the mpris interface problem for edge translation cases
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r-- | src/mpris2-controller.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala index 29dd4cf..f355d28 100644 --- a/src/mpris2-controller.vala +++ b/src/mpris2-controller.vala @@ -75,10 +75,10 @@ public class Mpris2Controller : GLib.Object construct{ try { var connection = DBus.Bus.get (DBus.BusType.SESSION); - this.mpris2_root = (MprisRoot) connection.get_object (root_interface.concat(".").concat(this.owner.name.down()), + this.mpris2_root = (MprisRoot) connection.get_object (root_interface.concat(".").concat(this.owner.mpris_name), "/org/mpris/MediaPlayer2", root_interface); - this.player = (MprisPlayer) connection.get_object (root_interface.concat(".").concat(this.owner.name.down()), + this.player = (MprisPlayer) connection.get_object (root_interface.concat(".").concat(this.owner.mpris_name), "/org/mpris/MediaPlayer2", root_interface.concat(".Player")); this.properties_interface = (FreeDesktopProperties) connection.get_object("org.freedesktop.Properties.PropertiesChanged", @@ -92,7 +92,7 @@ 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()); + debug("properties-changed for interface %s and owner %s", interface_source, this.owner.mpris_name); if(changed_properties == null || interface_source.has_prefix(this.root_interface) == false ){ warning("Property-changed hash is null or this is an interface that doesn't concerns us"); |