From 7fb6bb4e757df40a1adddf648ca20c7b0b0706c6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Tue, 3 Dec 2013 07:58:13 +0000 Subject: [PATCH] added support of tasks with deleted status --- NEWS | 1 + NEWS.html | 7 ++++++- src/glade/ptask.glade | 44 ++++++++++++++++++++++++-------------------- src/ui.c | 12 +++--------- 4 files changed, 34 insertions(+), 30 deletions(-) diff --git a/NEWS b/NEWS index 8c84b42..35b2b6d 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,7 @@ v0.0.5 * focus to first item when selecting a project. * keep focus on project after refresh. * keep focus on task after refresh. + * added support of tasks with deleted status. v0.0.4 ------ diff --git a/NEWS.html b/NEWS.html index 97bfe49..c84a8f5 100644 --- a/NEWS.html +++ b/NEWS.html @@ -336,6 +336,11 @@ keep focus on project after refresh. keep focus on task after refresh.

+
  • +

    +added support of tasks with deleted status. +

    +
  • @@ -481,7 +486,7 @@ Initial release.

    diff --git a/src/glade/ptask.glade b/src/glade/ptask.glade index 5752833..880cae7 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 - - - @@ -220,6 +220,9 @@ completed + + deleted + @@ -320,6 +323,7 @@ False statusstore 0 + 0 diff --git a/src/ui.c b/src/ui.c index 78262bd..3a3f7bc 100644 --- a/src/ui.c +++ b/src/ui.c @@ -114,20 +114,14 @@ GtkWindow *create_window(GtkBuilder *builder, GSettings *settings) const char *ui_get_status_filter() { - const char *result; - int status; + const char *status; log_fct_enter(); - status = gtk_combo_box_get_active(w_status); + status = gtk_combo_box_get_active_id(w_status); log_fct(__func__, "status: %d", status); - if (status == 1) - result = "completed"; - else - result = "pending"; - log_fct_exit(); - return result; + return status; } -- 2.7.4