Mercurial > audlegacy
comparison audacious/mainwin.c @ 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 | eb17963bc142 |
comparison
equal
deleted
inserted
replaced
434:7ffecac12107 | 435:e3070cc55ab2 |
---|---|
1188 case GDK_Left: | 1188 case GDK_Left: |
1189 case GDK_KP_Left: | 1189 case GDK_KP_Left: |
1190 case GDK_KP_7: | 1190 case GDK_KP_7: |
1191 if (playlist_get_current_length() != -1) | 1191 if (playlist_get_current_length() != -1) |
1192 bmp_playback_seek(CLAMP | 1192 bmp_playback_seek(CLAMP |
1193 (bmp_playback_get_time() - 5000, 0, | 1193 (bmp_playback_get_time() - 1000, 0, |
1194 playlist_get_current_length()) / 1000); | 1194 playlist_get_current_length()) / 1000); |
1195 break; | 1195 break; |
1196 case GDK_Right: | 1196 case GDK_Right: |
1197 case GDK_KP_Right: | 1197 case GDK_KP_Right: |
1198 case GDK_KP_9: | 1198 case GDK_KP_9: |
1199 if (playlist_get_current_length() != -1) | 1199 if (playlist_get_current_length() != -1) |
1200 bmp_playback_seek(CLAMP | 1200 bmp_playback_seek(CLAMP |
1201 (bmp_playback_get_time() + 5000, 0, | 1201 (bmp_playback_get_time() + 1000, 0, |
1202 playlist_get_current_length()) / 1000); | 1202 playlist_get_current_length()) / 1000); |
1203 break; | 1203 break; |
1204 case GDK_KP_4: | 1204 case GDK_KP_4: |
1205 playlist_prev(); | 1205 playlist_prev(); |
1206 break; | 1206 break; |
3352 draw_playlist_window(mainwin_force_redraw); | 3352 draw_playlist_window(mainwin_force_redraw); |
3353 } | 3353 } |
3354 | 3354 |
3355 GDK_THREADS_LEAVE(); | 3355 GDK_THREADS_LEAVE(); |
3356 | 3356 |
3357 if (seek_state == MAINWIN_SEEK_REV) | |
3358 bmp_playback_seek(CLAMP(bmp_playback_get_time() - 1000, 0, | |
3359 playlist_get_current_length()) / 1000); | |
3360 else if (seek_state == MAINWIN_SEEK_FWD) | |
3361 bmp_playback_seek(CLAMP(bmp_playback_get_time() + 1000, 0, | |
3362 playlist_get_current_length()) / 1000); | |
3363 | |
3357 return TRUE; | 3364 return TRUE; |
3358 } | 3365 } |