Mercurial > audlegacy
diff src/audacious/playlist.c @ 3217:764e8f87c186 trunk
port PlayList_List to gtk2
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Thu, 02 Aug 2007 14:14:32 +0200 |
parents | 5dd8bc77a590 |
children | 2127f7108033 |
line wrap: on
line diff
--- a/src/audacious/playlist.c Thu Aug 02 02:03:35 2007 -0500 +++ b/src/audacious/playlist.c Thu Aug 02 14:14:32 2007 +0200 @@ -73,6 +73,7 @@ #include "playlist_evmessages.h" #include "playlist_evlisteners.h" +#include "ui_skinned_playlist.h" typedef gint (*PlaylistCompareFunc) (PlaylistEntry * a, PlaylistEntry * b); typedef void (*PlaylistSaveFunc) (FILE * file); @@ -1116,8 +1117,8 @@ } bottom = MAX(0, playlist_get_length(playlist) - - playlistwin_list->pl_num_visible); - row = CLAMP(pos - playlistwin_list->pl_num_visible / 2, 0, bottom); + UI_SKINNED_PLAYLIST(playlistwin_list)->num_visible); + row = CLAMP(pos - UI_SKINNED_PLAYLIST(playlistwin_list)->num_visible / 2, 0, bottom); PLAYLIST_UNLOCK(playlist->mutex); playlistwin_set_toprow(row); g_cond_signal(cond_scan);