[patch] Playlist: always play on enter

Bastiaan Jacques <[email protected]> Sun, 23 Jan 2005 16:58:47 +0100
Newsgroups gmane.comp.multimedia.xmms.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,


This patch ensures that the previously selected item in the xmms
playlist is played, even if that item is not in the currently visible
part of the playlist. This behaviour is identical to Nullsoft Winamp's
playlist behaviour.


Sincerely,


Bastiaan Jacques.


Index: xmms/playlistwin.c
===================================================================
RCS file: /cvs/xmms/xmms/playlistwin.c,v
retrieving revision 1.90
diff -c -r1.90 playlistwin.c
*** xmms/playlistwin.c	22 May 2004 23:40:26 -0000	1.90
- --- xmms/playlistwin.c	23 Jan 2005 15:43:43 -0000
***************
*** 1591,1597 ****
~  			playlistwin_list->pl_first = get_playlist_length() -
playlistwin_list->pl_num_visible;
~  			break;
~  		case GDK_Return:
! 			if (playlistwin_list->pl_prev_selected > -1 &&
playlistwin_item_visible(playlistwin_list->pl_prev_selected))
~  			{
~  				playlist_set_position(playlistwin_list->pl_prev_selected);
~  				if (!get_input_playing())
- --- 1591,1597 ----
~  			playlistwin_list->pl_first = get_playlist_length() -
playlistwin_list->pl_num_visible;
~  			break;
~  		case GDK_Return:
! 			if (playlistwin_list->pl_prev_selected > -1)
~  			{
~  				playlist_set_position(playlistwin_list->pl_prev_selected);
~  				if (!get_input_playing())
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFB88m3wDeUwhiOHwURAr4DAJ9haXU2D8ZyMM0iq9ktWaAExcG93QCfYSOc
O8J8FnjbblHGk8YuYWhyva0=
=L+dX
-----END PGP SIGNATURE-----