diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-02-27 14:23:24 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-02-27 14:23:24 +0100 |
commit | 9951be118a90732e6c74f2a8f2ec6530e8bdf947 (patch) | |
tree | ecb9771e947a46e8da9f02bd347808767a2d49cd | |
parent | f9be53fbef3af02855fdb718b55f37debbd22001 (diff) |
fixed redraw of queued tracks
-rw-r--r-- | plugins/gtkui/ddblistview.c | 2 | ||||
-rw-r--r-- | plugins/gtkui/gtkui.c | 18 |
2 files changed, 6 insertions, 14 deletions
diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c index 5b70eb2d..4615503d 100644 --- a/plugins/gtkui/ddblistview.c +++ b/plugins/gtkui/ddblistview.c @@ -1327,7 +1327,7 @@ void ddb_listview_list_mouse1_released (DdbListview *ps, int state, int ex, int ey, double time) { if (ps->dragwait) { ps->dragwait = 0; -#if 0 // FIXME: port +#if 0 int y = ey/ps->rowheight + ps->scrollpos; ddb_listview_select_single (ps, y); #endif diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index 8d213ba9..acde4de8 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -352,22 +352,16 @@ gtkui_on_activate (DB_event_t *ev, uintptr_t data) { void redraw_queued_tracks (DdbListview *pl, int list) { -#if 0 // FIXME: port - DdbListviewIter it = deadbeef->pl_get_for_idx_and_iter (pl->scrollpos, list); - int i = ddb_listview_get_vscroll_pos (pl); - while (it && i < pl->scrollpos + pl->nvisiblerows) { + DB_playItem_t *it; + int idx = 0; + for (it = deadbeef->pl_get_first (PL_MAIN); it; idx++) { if (deadbeef->pl_playqueue_test (it) != -1) { - ddb_listview_draw_row (pl, i, it); + ddb_listview_draw_row (pl, idx, (DdbListviewIter)it); } - DdbListviewIter next = deadbeef->pl_get_next (it, list); + DB_playItem_t *next = deadbeef->pl_get_next (it, PL_MAIN); deadbeef->pl_item_unref (it); it = next; - i++; } - if (it) { - deadbeef->pl_item_unref (it); - } -#endif } static gboolean @@ -873,8 +867,6 @@ gtkui_stop (void) { trace ("gtk thread finished\n"); gtk_tid = 0; main_playlist_free (); -// FIXME: port -// columns_free (&search_columns); trace ("gtkui_stop completed\n"); return 0; } |