[gnome-todo] task-row: Allow changing tasks more freely



commit cdde346681f734c97c45a937dc976ac2f329846b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Sep 4 23:58:15 2018 -0300

    task-row: Allow changing tasks more freely
    
    Instead of limiting the subtask to the currently hovered
    row, allow it from 0 to the current depth + 1.

 src/task-list-view/gtd-task-row.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/task-list-view/gtd-task-row.c b/src/task-list-view/gtd-task-row.c
index bb3abba..ec7af7c 100644
--- a/src/task-list-view/gtd-task-row.c
+++ b/src/task-list-view/gtd-task-row.c
@@ -902,7 +902,7 @@ gtd_task_row_set_drag_offset (GtdTaskRow *self,
   gtk_widget_set_size_request (self->dnd_frame, -1, gtk_widget_get_height (source_row));
 
   current_task_depth = gtd_task_get_depth (self->task);
-  depth = CLAMP (x_offset / 32, current_task_depth, current_task_depth + 1);
+  depth = CLAMP (x_offset / 32, 0, current_task_depth + 1);
   gtk_widget_set_margin_start (self->dnd_frame, depth * 32 + 12);
 
   GTD_TRACE_MSG ("DnD frame height: %d, depth: %d",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]