# HG changeset patch # User Cristi Magherusan # Date 1200760366 -7200 # Node ID 5aab999234224c108a308f9908fd783a534e2110 # Parent de1265dab1427af9a6da1304b19437af24a9b93d pressing space when the playlist is focused takes us to the current playing song, fixes #129 diff -r de1265dab142 -r 5aab99923422 src/audacious/ui_playlist.c --- 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; }