aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-09 12:27:18 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-09 12:27:18 +0000
commit5bae6af22449e60aa0c3eaf0dd08a518979f2df9 (patch)
tree7510561837083a01e4fde1f80bb43fc18fd73817 /src/mpris2-controller.vala
parent1844fd179212b85591f0e4eeb33591edba2f0f0b (diff)
downloadayatana-indicator-sound-5bae6af22449e60aa0c3eaf0dd08a518979f2df9.tar.gz
ayatana-indicator-sound-5bae6af22449e60aa0c3eaf0dd08a518979f2df9.tar.bz2
ayatana-indicator-sound-5bae6af22449e60aa0c3eaf0dd08a518979f2df9.zip
nicely seeking
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r--src/mpris2-controller.vala8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala
index dae8dfb..7838a67 100644
--- a/src/mpris2-controller.vala
+++ b/src/mpris2-controller.vala
@@ -176,7 +176,7 @@ public class Mpris2Controller : GLib.Object
public void transport_update(TransportMenuitem.action command)
{
- debug("transport_event input = %i", (int)command);
+ //debug("transport_event input = %i", (int)command);
if(command == TransportMenuitem.action.PLAY_PAUSE){
this.player.PlayPause.begin();
}
@@ -187,10 +187,12 @@ public class Mpris2Controller : GLib.Object
this.player.Next.begin();
}
else if(command == TransportMenuitem.action.REWIND){
- this.player.Seek.begin(-1);
+ debug("transport_event rewind = %i", (int)command);
+ this.player.Seek.begin(-500000);
}
else if(command == TransportMenuitem.action.FORWIND){
- this.player.Seek.begin(1);
+ debug("transport_event input = %i", (int)command);
+ this.player.Seek.begin(350000);
}
}