[gnome-todo] task-list-view: Allow dragging to position 0
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] task-list-view: Allow dragging to position 0
- Date: Mon, 3 May 2021 22:30:25 +0000 (UTC)
commit e16a348586271fa61bb753225f9d9044dcd724bb
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon May 3 17:07:58 2021 -0300
task-list-view: Allow dragging to position 0
This limitation is no more.
src/gui/gtd-task-list-view.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/gui/gtd-task-list-view.c b/src/gui/gtd-task-list-view.c
index 72f56cf9..2b99bfe5 100644
--- a/src/gui/gtd-task-list-view.c
+++ b/src/gui/gtd-task-list-view.c
@@ -898,12 +898,7 @@ on_drop_target_drag_drop_cb (GtkDropTarget *drop_target,
drop_row = get_drop_row_at_y (self, y);
hovered_row = task_row_from_row (drop_row);
hovered_task = gtd_task_row_get_task (hovered_row);
-
- /*
- * FIXME: via DnD, we only support moving the task to below another
- * task, thus the "+ 1"
- */
- new_position = gtd_task_get_position (hovered_task) + 1;
+ new_position = gtd_task_get_position (hovered_task);
current_position = gtd_task_get_position (source_task);
GTD_TRACE_MSG ("Dropping task %p at %ld", source_task, new_position);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]