diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-09-13 11:57:41 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-09-13 11:57:41 +0100 |
commit | fc3c998e6bbec4528a9b1682665064679ac590ac (patch) | |
tree | 926011b129de6371f8cd0c7ef164f63d3f709572 /src/mpris2-controller.vala | |
parent | af31c744cee14a2fadac8f72111f1b422de9f7a7 (diff) | |
download | ayatana-indicator-sound-fc3c998e6bbec4528a9b1682665064679ac590ac.tar.gz ayatana-indicator-sound-fc3c998e6bbec4528a9b1682665064679ac590ac.tar.bz2 ayatana-indicator-sound-fc3c998e6bbec4528a9b1682665064679ac590ac.zip |
playback status investigations
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 5f284b2..b6d2333 100644 --- a/src/mpris2-controller.vala +++ b/src/mpris2-controller.vala @@ -1,5 +1,4 @@ /* -This service primarily controls PulseAudio and is driven by the sound indicator menu on the panel. Copyright 2010 Canonical Ltd. Authors: @@ -86,8 +85,9 @@ public class Mpris2Controller : GLib.Object root_interface.concat(".Player")); this.player.Seeked += onSeeked; - this.properties_interface = (FreeDesktopProperties) connection.get_object(root_interface.concat(".").concat(this.owner.name.down()), + this.properties_interface = (FreeDesktopProperties) connection.get_object("org.freedesktop.Properties.PropertiesChanged",//root_interface.concat(".").concat(this.owner.name.down()), "/org/mpris/MediaPlayer2"); + this.properties_interface.PropertiesChanged += property_changed_cb; } catch (DBus.Error e) { @@ -102,7 +102,7 @@ public class Mpris2Controller : GLib.Object 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"); + warning("Property-changed hash is null or this is an interface that doesn't concerns us"); return; } Value? play_v = changed_properties.lookup("PlaybackStatus"); |