X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fmain.c;h=fd583040215fe7a1f045ef447efb4bfe554a0313;hb=d1d78bf94968b488c5f175d6859f76de0c8eb41d;hp=0c059ffcaffea2abcce1a228f467c5d9908ff544;hpb=68bf32c9de206a3f80a615782069425522ddad8d;p=ptask.git diff --git a/src/main.c b/src/main.c index 0c059ff..fd58304 100644 --- a/src/main.c +++ b/src/main.c @@ -38,7 +38,8 @@ enum { COL_ID, COL_DESCRIPTION, COL_PROJECT, - COL_UUID + COL_UUID, + COL_PRIORITY }; static struct task *get_selected_task(GtkTreeView *treeview) @@ -62,7 +63,7 @@ static struct task *get_selected_task(GtkTreeView *treeview) uuid = g_value_get_string(&value); - for(tasks_cur = tasks; *tasks_cur; tasks_cur++) + for (tasks_cur = tasks; *tasks_cur; tasks_cur++) if (!strcmp((*tasks_cur)->uuid, uuid)) return *tasks_cur; @@ -132,6 +133,7 @@ static void refresh() COL_ID, (*tasks_cur)->id, COL_DESCRIPTION, (*tasks_cur)->description, COL_UUID, (*tasks_cur)->uuid, + COL_PRIORITY, (*tasks_cur)->priority, -1); } }