summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-22 10:36:24 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-22 10:36:24 +0200
commit34433a67885bdb99858e80bd270516c1b6f3cb55 (patch)
tree30f8cd2dc91559baee2266dd29d11deefa7af4fc
parente6b0e569261bfa7534635df45dee3aa411d2e6fb (diff)
cleaned up few bogus code lines in ddblistview.c
-rw-r--r--plugins/gtkui/ddblistview.c16
1 files 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;
}