From 34433a67885bdb99858e80bd270516c1b6f3cb55 Mon Sep 17 00:00:00 2001 From: waker Date: Sun, 22 May 2011 10:36:24 +0200 Subject: cleaned up few bogus code lines in ddblistview.c --- plugins/gtkui/ddblistview.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c index a64ed8c7..b6140456 100644 --- a/plugins/gtkui/ddblistview.c +++ b/plugins/gtkui/ddblistview.c @@ -1327,20 +1327,10 @@ ddb_listview_select_single (DdbListview *ps, int sel) { if (it == sel_it) { if (!selected) { deadbeef->pl_set_selected (it, 1); -// if (nchanged < NUM_CHANGED_ROWS_BEFORE_FULL_REDRAW) { -// ddb_listview_draw_row (ps, idx, it); -// ps->binding->selection_changed (it, idx); -// } -// nchanged++; } } else if (selected) { deadbeef->pl_set_selected (it, 0); -// if (nchanged < NUM_CHANGED_ROWS_BEFORE_FULL_REDRAW) { -// ddb_listview_draw_row (ps, idx, it); -// ps->binding->selection_changed (it, idx); -// } -// nchanged++; } DB_playItem_t *next = deadbeef->pl_get_next (it, PL_MAIN); UNREF (it); @@ -1350,10 +1340,8 @@ ddb_listview_select_single (DdbListview *ps, int sel) { UNREF (sel_it); deadbeef->pl_unlock (); - if (nchanged >= NUM_CHANGED_ROWS_BEFORE_FULL_REDRAW, 1) { - ddb_listview_refresh (ps, DDB_REFRESH_LIST); - ps->binding->selection_changed (NULL, -1); // that means "selection changed a lot, redraw everything" - } + ddb_listview_refresh (ps, DDB_REFRESH_LIST); + ps->binding->selection_changed (NULL, -1); // that means "selection changed a lot, redraw everything" ps->area_selection_start = sel; ps->area_selection_end = sel; } -- cgit v1.2.3