From d9498079f361e18b24ef6113793d481f20cb36ae Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 15 Mar 2004 21:26:35 +0000 Subject: set the search query (e_tasks_init): set the query to be #t by default 2004-03-15 JP Rosevear * gui/e-tasks.c (search_bar_sexp_changed_cb): set the search query (e_tasks_init): set the query to be #t by default * gui/e-cal-model.c (redo_queries): use the search query if there is one (and no time is set), make sure to dup the #f svn path=/trunk/; revision=25085 --- calendar/gui/e-cal-model.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'calendar/gui/e-cal-model.c') diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index 2cf8638f9f..d2ae13f9dc 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -1469,8 +1469,10 @@ redo_queries (ECalModel *model) " %s)", iso_start, iso_end, priv->search_sexp ? priv->search_sexp : ""); + } else if (priv->search_sexp) { + priv->full_sexp = g_strdup (priv->search_sexp); } else { - priv->full_sexp = ("#f"); + priv->full_sexp = g_strdup ("#f"); } /* clean up the current contents */ -- cgit v1.2.3