Mercurial > audlegacy
changeset 1618:425a9a172319 trunk
[svn] - do not show filepopup for blank region when a playlist is shorter than the playlist window.
author | yaz |
---|---|
date | Tue, 05 Sep 2006 08:40:08 -0700 |
parents | 3de4bd38fe4f |
children | 006dd0fe9835 |
files | ChangeLog audacious/widgets/playlist_list.c |
diffstat | 2 files changed, 18 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Sep 05 08:09:14 2006 -0700 +++ b/ChangeLog Tue Sep 05 08:40:08 2006 -0700 @@ -1,3 +1,14 @@ +2006-09-05 15:09:14 +0000 + revision [2165] + generic vfs_gets and m3u updated to use vfs + + Changes: Modified: + +6 -5 trunk/Plugins/Container/m3u/m3u.c + +2 -4 trunk/libaudacious/Makefile.in + +4 -0 trunk/libaudacious/vfs.h + +51 -0 trunk/libaudacious/vfs_common.c + + 2006-09-05 05:36:30 +0000 George Averill <nhjm449@gmail.com> revision [2163] - Fix audacious-arts-helper warnings.
--- a/audacious/widgets/playlist_list.c Tue Sep 05 08:09:14 2006 -0700 +++ b/audacious/widgets/playlist_list.c Tue Sep 05 08:40:08 2006 -0700 @@ -361,6 +361,7 @@ gint y) { gint iy, length; + gint ret; if (!widget_contains(WIDGET(pl), x, y) || !pl->pl_fheight) return -1; @@ -369,7 +370,12 @@ return -1; iy = y - pl->pl_widget.y; - return (MIN((iy / pl->pl_fheight) + pl->pl_first, length - 1)); + ret = (iy / pl->pl_fheight) + pl->pl_first; + + if(ret > length-1) + ret = -1; + + return ret; } static void