# HG changeset patch # User Tomasz Mon # Date 1187511716 -7200 # Node ID b4ff4ef0211fb0c719078a1bdf7af6cdd4f23541 # Parent 38d5745b3b932e789817b8eeaf2e79d98045ac83 make queue on click on playlist with GDK_MOD1_MASK working again diff -r 38d5745b3b93 -r b4ff4ef0211f src/audacious/ui_playlist.c --- a/src/audacious/ui_playlist.c Sat Aug 18 14:18:26 2007 -0500 +++ b/src/audacious/ui_playlist.c Sun Aug 19 10:21:56 2007 +0200 @@ -999,8 +999,6 @@ { gint xpos, ypos; GtkRequisition req; - Playlist *playlist = playlist_get_active(); - gint idx = 0; gtk_window_get_position(GTK_WINDOW(playlistwin), &xpos, &ypos); @@ -1093,18 +1091,6 @@ ui_manager_popup_menu_show(GTK_MENU(mainwin_general_menu), event->x_root, event->y_root + 2, 3, event->time); } - else if (event->button == 1 && (event->state & GDK_MOD1_MASK)) - { - GList *node; - - node = playlist_get_selected(playlist); - - if (node != NULL) - { - idx = GPOINTER_TO_INT(playlist_get_selected(playlist)->data); - playlist_queue_position(playlist, idx); - } - } return FALSE; } diff -r 38d5745b3b93 -r b4ff4ef0211f src/audacious/ui_skinned_playlist.c --- a/src/audacious/ui_skinned_playlist.c Sat Aug 18 14:18:26 2007 -0500 +++ b/src/audacious/ui_skinned_playlist.c Sun Aug 19 10:21:56 2007 +0200 @@ -821,6 +821,9 @@ if (!(event->state & GDK_CONTROL_MASK)) playlist_select_all(playlist, FALSE); + if ((event->state & GDK_MOD1_MASK)) + playlist_queue_position(playlist, nr); + if (event->state & GDK_SHIFT_MASK && pl->prev_selected != -1) { playlist_select_range(playlist, pl->prev_selected, nr, TRUE); pl->prev_min = pl->prev_selected;