Mercurial > audlegacy
diff src/audacious/ui_playlist.c @ 2650:f41ca301852a trunk
[svn] - patch by Vincent Ratier to add Alt+Click enqueue to the playlist editor. Closes #860.
author | nenolod |
---|---|
date | Thu, 05 Apr 2007 06:11:33 -0700 |
parents | c06b07b17fb5 |
children | 2d0c90f38824 |
line wrap: on
line diff
--- a/src/audacious/ui_playlist.c Thu Apr 05 05:56:00 2007 -0700 +++ b/src/audacious/ui_playlist.c Thu Apr 05 06:11:33 2007 -0700 @@ -1151,6 +1151,16 @@ event->button, event->time); grab = FALSE; } + else if (event->button == 1 && (event->state & GDK_MOD1_MASK)) + { + Playlist *playlist = playlist_get_active(); + int index = GPOINTER_TO_INT(playlist_get_selected(playlist)->data); + + handle_press_cb(playlistwin_wlist, widget, event); + draw_playlist_window(FALSE); + + playlist_queue_position(playlist, index); + } else { handle_press_cb(playlistwin_wlist, widget, event); draw_playlist_window(FALSE);