Mercurial > audlegacy
changeset 435:e3070cc55ab2 trunk
[svn] - Scroll by 1000 frames when using the keypad (7 && 9) inside the player window to
scroll through the song instead of 5000 frames.
- Scroll by 1000 when using the tristate buttons to seek.
author | nenolod |
---|---|
date | Sat, 14 Jan 2006 18:09:54 -0800 |
parents | 7ffecac12107 |
children | 29abdef30cc6 |
files | audacious/mainwin.c |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/audacious/mainwin.c Sat Jan 14 17:57:44 2006 -0800 +++ b/audacious/mainwin.c Sat Jan 14 18:09:54 2006 -0800 @@ -1190,7 +1190,7 @@ case GDK_KP_7: if (playlist_get_current_length() != -1) bmp_playback_seek(CLAMP - (bmp_playback_get_time() - 5000, 0, + (bmp_playback_get_time() - 1000, 0, playlist_get_current_length()) / 1000); break; case GDK_Right: @@ -1198,7 +1198,7 @@ case GDK_KP_9: if (playlist_get_current_length() != -1) bmp_playback_seek(CLAMP - (bmp_playback_get_time() + 5000, 0, + (bmp_playback_get_time() + 1000, 0, playlist_get_current_length()) / 1000); break; case GDK_KP_4: @@ -3354,5 +3354,12 @@ GDK_THREADS_LEAVE(); + if (seek_state == MAINWIN_SEEK_REV) + bmp_playback_seek(CLAMP(bmp_playback_get_time() - 1000, 0, + playlist_get_current_length()) / 1000); + else if (seek_state == MAINWIN_SEEK_FWD) + bmp_playback_seek(CLAMP(bmp_playback_get_time() + 1000, 0, + playlist_get_current_length()) / 1000); + return TRUE; }