# HG changeset patch # User nenolod # Date 1175818569 25200 # Node ID b5a612371920428bc9dd96f8d22648b5961a0503 # Parent 2d0c90f3882444f6a3830deb7dabe377a3497cb0 [svn] - fix crashes related to alt+click enqueue diff -r 2d0c90f38824 -r b5a612371920 ChangeLog --- a/ChangeLog Thu Apr 05 17:01:26 2007 -0700 +++ b/ChangeLog Thu Apr 05 17:16:09 2007 -0700 @@ -1,3 +1,11 @@ +2007-04-06 00:01:26 +0000 William Pitcock + revision [4330] + - fix alt+click enqueue. this is more like vincent ratier's original patch except that it's C90-capable for freebsd 4. + + trunk/src/audacious/ui_playlist.c | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + + 2007-04-05 16:26:13 +0000 Giacomo Lozito revision [4328] - allow the player to start with all of its windows hidden (but give a warning to the user, whose display can be disabled); also, try to remember player windows positions when they stay hidden between sessions diff -r 2d0c90f38824 -r b5a612371920 src/audacious/build_stamp.c --- a/src/audacious/build_stamp.c Thu Apr 05 17:01:26 2007 -0700 +++ b/src/audacious/build_stamp.c Thu Apr 05 17:16:09 2007 -0700 @@ -1,2 +1,2 @@ #include -const gchar *svn_stamp = "20070405-4328"; +const gchar *svn_stamp = "20070406-4330"; diff -r 2d0c90f38824 -r b5a612371920 src/audacious/ui_playlist.c --- a/src/audacious/ui_playlist.c Thu Apr 05 17:01:26 2007 -0700 +++ b/src/audacious/ui_playlist.c Thu Apr 05 17:16:09 2007 -0700 @@ -1029,6 +1029,8 @@ gboolean grab = TRUE; gint xpos, ypos; GtkRequisition req; + Playlist *playlist = playlist_get_active(); + gint idx = 0; gtk_window_get_position(GTK_WINDOW(playlistwin), &xpos, &ypos); @@ -1153,16 +1155,20 @@ } else if (event->button == 1 && (event->state & GDK_MOD1_MASK)) { - Playlist *playlist; - gint index; + GList *node; handle_press_cb(playlistwin_wlist, widget, event); draw_playlist_window(FALSE); - playlist = playlist_get_active(); - index = GPOINTER_TO_INT(playlist_get_selected(playlist)->data); + node = playlist_get_selected(playlist); - playlist_queue_position(playlist, index); + if (node != NULL) + { + idx = GPOINTER_TO_INT(playlist_get_selected(playlist)->data); + playlist_queue_position(playlist, idx); + } + + grab = FALSE; } else { handle_press_cb(playlistwin_wlist, widget, event);