diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-08-27 12:25:47 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-08-27 12:25:47 +0100 |
commit | 358766335b244a2687469687d0ecacfb4238b221 (patch) | |
tree | d908c400b8b0a906eca6e87e3f6e26546b650e18 /src/mpris2-controller.vala | |
parent | e65973ff51c6db68adfb745dcc4df348031b34c3 (diff) | |
download | ayatana-indicator-sound-358766335b244a2687469687d0ecacfb4238b221.tar.gz ayatana-indicator-sound-358766335b244a2687469687d0ecacfb4238b221.tar.bz2 ayatana-indicator-sound-358766335b244a2687469687d0ecacfb4238b221.zip |
remove mpris1 support
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r-- | src/mpris2-controller.vala | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala index df2bbd3..dd6a312 100644 --- a/src/mpris2-controller.vala +++ b/src/mpris2-controller.vala @@ -171,7 +171,7 @@ public class Mpris2Controller : GLib.Object MetadataMenuitem.attributes_format()); } - public void transport_event(TransportMenuitem.action command) + public void transport_update(TransportMenuitem.action command) { debug("transport_event input = %i", (int)command); if(command == TransportMenuitem.action.PLAY_PAUSE){ @@ -207,7 +207,7 @@ public class Mpris2Controller : GLib.Object TODO: SetPosition on the player object is not working with rhythmbox, runtime error - "dbus function not supported" */ - public void set_position(double position) + public void set_track_position(double position) { debug("Set position with pos (0-100) %f", position); Value? time_value = this.player.Metadata.lookup("mpris:length"); @@ -227,8 +227,6 @@ public class Mpris2Controller : GLib.Object DBus.ObjectPath path = new ObjectPath(v.get_string()); try{ this.player.SetPosition(path, (int64)(new_time_position)); - //ScrubMenuitem scrub = this.owner.custom_items[PlayerController.widget_order.SCRUB] as ScrubMenuitem; - //scrub.update_position(((int32)new_time_position) / 1000); } catch(DBus.Error e){ error("DBus Error calling the player objects SetPosition method %s", @@ -240,8 +238,6 @@ public class Mpris2Controller : GLib.Object public void onSeeked(int64 position){ debug("Seeked signal callback with pos = %i", (int)position/1000); - //ScrubMenuitem scrub = this.owner.custom_items[PlayerController.widget_order.SCRUB] as ScrubMenuitem; - //scrub.update_position((int32)position/1000); } public bool connected() |