X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fui_tasktree.c;h=abec583dd5510932912c0e39ab532e36e4656cfa;hb=d4052c9bd3a0b2da88c546eefe096f610a34edef;hp=7dd49545782f300e2a6259f53a3ec7ea34aab8ef;hpb=7d6027f8ed52593c0448ce94c0610689cc8f3b12;p=ptask.git diff --git a/src/ui_tasktree.c b/src/ui_tasktree.c index 7dd4954..abec583 100644 --- a/src/ui_tasktree.c +++ b/src/ui_tasktree.c @@ -22,6 +22,7 @@ #include #include +#include #include static GtkTreeView *w_treeview; @@ -32,7 +33,8 @@ enum { COL_DESCRIPTION, COL_PROJECT, COL_UUID, - COL_PRIORITY + COL_PRIORITY, + COL_URGENCY }; static int priority_to_int(const char *str) @@ -74,6 +76,17 @@ static gint priority_cmp(GtkTreeModel *model, return 0; } +int tasktree_cursor_changed_cbk(GtkTreeView *treeview, gpointer data) +{ + log_fct_enter(); + + ui_taskpanel_update(ui_tasktree_get_selected_task()); + + log_fct_exit(); + + return FALSE; +} + void ui_tasktree_init(GtkBuilder *builder) { GtkTreeModel *model; @@ -246,6 +259,7 @@ void ui_tasktree_update(struct task **tasks, const char *prj_filter) COL_PROJECT, prj, COL_UUID, (*tasks_cur)->uuid, COL_PRIORITY, (*tasks_cur)->priority, + COL_URGENCY, (*tasks_cur)->urgency, -1); } }