aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-tasks.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-01-04 03:03:00 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-01-04 03:03:00 +0800
commit6d4da19b136aa627cea16ecc4f7f6154aad19933 (patch)
tree63a28a5d82daf2a9d917f7840ffec8b06f3fd4c2 /calendar/gui/e-tasks.c
parent0fe2d5201603163b11341cb3719500fa762bc532 (diff)
downloadgsoc2013-evolution-6d4da19b136aa627cea16ecc4f7f6154aad19933.tar
gsoc2013-evolution-6d4da19b136aa627cea16ecc4f7f6154aad19933.tar.gz
gsoc2013-evolution-6d4da19b136aa627cea16ecc4f7f6154aad19933.tar.bz2
gsoc2013-evolution-6d4da19b136aa627cea16ecc4f7f6154aad19933.tar.lz
gsoc2013-evolution-6d4da19b136aa627cea16ecc4f7f6154aad19933.tar.xz
gsoc2013-evolution-6d4da19b136aa627cea16ecc4f7f6154aad19933.tar.zst
gsoc2013-evolution-6d4da19b136aa627cea16ecc4f7f6154aad19933.zip
only need one warning message now
002-01-03 JP Rosevear <jpr@ximian.com> * gui/tasks-control.c (confirm_expunge): only need one warning message now * gui/e-tasks.c (create_sexp): change the logic to expunge all completed tasks not just hidden ones svn path=/trunk/; revision=15236
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r--calendar/gui/e-tasks.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c
index 026f8e5708..54e8ea3c45 100644
--- a/calendar/gui/e-tasks.c
+++ b/calendar/gui/e-tasks.c
@@ -520,22 +520,14 @@ e_tasks_delete_selected (ETasks *tasks)
static char *
create_sexp (void)
{
- char *completed_sexp;
- char *new_sexp;
-
- /* Create a sub-expression for filtering out completed tasks, based on
- the config settings. */
- completed_sexp = calendar_config_get_hide_completed_tasks_sexp ();
-
- new_sexp = g_strdup_printf ("(and (= (get-vtype) \"VTODO\") (not %s))",
- completed_sexp ? completed_sexp : "");
- g_free (completed_sexp);
+ char *sexp;
+ sexp = g_strdup ("(and (= (get-vtype) \"VTODO\") (is-completed?))");
#if 0
- g_print ("Calendar model sexp:\n%s\n", new_sexp);
+ g_print ("Calendar model sexp:\n%s\n", sexp);
#endif
- return new_sexp;
+ return sexp;
}
/* Callback used when a component is updated in the live query */