[gnome-todo] eds: Set task position at creation time



commit f68d9c0669a5955b7b5bf81362947f3d4254a359
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Feb 6 16:00:27 2019 -0200

    eds: Set task position at creation time
    
    Created tasks are always at the very bottom of
    the tasklist.

 plugins/eds/gtd-provider-eds.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/plugins/eds/gtd-provider-eds.c b/plugins/eds/gtd-provider-eds.c
index abedede..76b5b77 100644
--- a/plugins/eds/gtd-provider-eds.c
+++ b/plugins/eds/gtd-provider-eds.c
@@ -492,6 +492,7 @@ gtd_provider_eds_create_task (GtdProvider *provider,
   gtd_task_set_title (new_task, title);
   gtd_task_set_due_date (new_task, due_date);
   gtd_task_set_list (new_task, list);
+  gtd_task_set_position (new_task, g_list_model_get_n_items (G_LIST_MODEL (list)));
 
   /* Use the component with the changes we've just done */
   updated_component = gtd_task_eds_get_component (GTD_TASK_EDS (new_task));


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