summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-03-10 20:37:41 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-03-10 20:37:41 +0100
commit725517f834f1055f7fbcf3443c465c09679383b4 (patch)
tree2e81f0bffdf423f6642a7217547540eb6a9e67ca
parente16a3b00d4ad0fe748c8291b2021a3f2b10a19da (diff)
fixed selection/dnd in search window
-rw-r--r--plugins/gtkui/ddblistview.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c
index 1c5ecd95..7b7dbb83 100644
--- a/plugins/gtkui/ddblistview.c
+++ b/plugins/gtkui/ddblistview.c
@@ -1243,6 +1243,8 @@ ddb_listview_list_mouse1_pressed (DdbListview *ps, int state, int ex, int ey, do
int prev = cursor;
if (sel != -1) {
ps->binding->set_cursor (sel);
+ DdbListviewIter it = ps->binding->get_for_idx (sel);
+ ddb_listview_draw_row (ps, sel, it);
ps->shift_sel_anchor = ps->binding->cursor ();
}
// handle multiple selection
@@ -1278,7 +1280,7 @@ ddb_listview_list_mouse1_pressed (DdbListview *ps, int state, int ex, int ey, do
}
else {
DdbListviewIter it = ps->binding->get_for_idx (sel);
- if (!it || !ps->binding->is_selected (it)) {
+ if (!it || !ps->binding->is_selected (it) || !ps->binding->drag_n_drop) {
// reset selection, and set it to single item
ddb_listview_select_single (ps, sel);
ps->areaselect = 1;