# HG changeset patch # User nenolod # Date 1137290994 28800 # Node ID e3070cc55ab20b90101ffdb25ab729836b636295 # Parent 7ffecac1210701e17bde4ddd452d4ab70f01a55a [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. diff -r 7ffecac12107 -r e3070cc55ab2 audacious/mainwin.c --- 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; }