Mercurial > audlegacy
changeset 4199:5aab99923422
pressing space when the playlist is focused takes us to the current playing
song, fixes #129
author | Cristi Magherusan <majeru@atheme.org> |
---|---|
date | Sat, 19 Jan 2008 18:32:46 +0200 |
parents | de1265dab142 |
children | c010163b6286 5f92bee6cd5b |
files | src/audacious/ui_playlist.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_playlist.c Sat Jan 19 14:00:14 2008 +0100 +++ b/src/audacious/ui_playlist.c Sat Jan 19 18:32:46 2008 +0200 @@ -1145,6 +1145,7 @@ guint keyval; gboolean refresh = FALSE; + guint cur_pos; if (cfg.playlist_shaded) return FALSE; @@ -1235,6 +1236,12 @@ gtk_window_present(GTK_WINDOW(equalizerwin)); } break; + case GDK_space: + cur_pos=playlist_get_position(playlist); + UI_SKINNED_PLAYLIST(playlistwin_list)->first = + cur_pos - (UI_SKINNED_PLAYLIST(playlistwin_list)->num_visible >> 1); + refresh = TRUE; + break; default: return FALSE; }