From 3aa15f052c00ecb1d09ff9c8cad9d4ad2de9de96 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Wed, 4 Dec 2013 20:47:36 +0000 Subject: [PATCH] implemented the cancel button of the task panel. --- NEWS | 1 + src/glade/ptask.glade | 41 +++++++++++++++++++++-------------------- src/ui_taskpanel.c | 11 +++++++++++ 3 files changed, 33 insertions(+), 20 deletions(-) diff --git a/NEWS b/NEWS index adfe62f..e167c36 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,7 @@ v0.0.5 * keep focus on task after refresh. * added support of tasks with deleted status. * added urgency column. + * implemented the cancel button of the task panel. v0.0.4 ------ diff --git a/src/glade/ptask.glade b/src/glade/ptask.glade index 315e014..6ed4162 100644 --- a/src/glade/ptask.glade +++ b/src/glade/ptask.glade @@ -1,6 +1,26 @@ + + + + + + + + None + + + Low + + + Medium + + + High + + + False 5 @@ -180,26 +200,6 @@ button2 - - - - - - - - None - - - Low - - - Medium - - - High - - - @@ -737,6 +737,7 @@ True True True + False diff --git a/src/ui_taskpanel.c b/src/ui_taskpanel.c index 91f3c54..6380268 100644 --- a/src/ui_taskpanel.c +++ b/src/ui_taskpanel.c @@ -224,3 +224,14 @@ int taskremove_clicked_cbk(GtkButton *btn, gpointer data) return FALSE; } + +int taskpanel_cancel_clicked_cbk(GtkButton *btn, gpointer data) +{ + log_fct_enter(); + + ui_taskpanel_update(current_task); + + log_fct_exit(); + + return FALSE; +} -- 2.7.4