aboutsummaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/mpris2-controller.vala8
-rw-r--r--src/sound-service.c2
-rw-r--r--src/transport-widget.c2
3 files changed, 6 insertions, 6 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);
}
}
diff --git a/src/sound-service.c b/src/sound-service.c
index eeab33e..c79b9f6 100644
--- a/src/sound-service.c
+++ b/src/sound-service.c
@@ -40,10 +40,8 @@ service_shutdown (IndicatorService *service, gpointer user_data)
if (mainloop != NULL) {
g_debug("Service shutdown !");
-/*
close_pulse_activites();
g_main_loop_quit(mainloop);
-*/
}
return;
diff --git a/src/transport-widget.c b/src/transport-widget.c
index 2f5001c..00913aa 100644
--- a/src/transport-widget.c
+++ b/src/transport-widget.c
@@ -346,7 +346,7 @@ transport_widget_trigger_seek (gpointer userdata)
{
g_return_val_if_fail ( IS_TRANSPORT_WIDGET(userdata), FALSE );
TransportWidgetPrivate* priv = TRANSPORT_WIDGET_GET_PRIVATE (TRANSPORT_WIDGET(userdata));
- priv->skip_frequency = g_timeout_add (300,
+ priv->skip_frequency = g_timeout_add (100,
transport_widget_seek,
userdata);
return FALSE;