aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/calendar-model.c')
-rw-r--r--calendar/gui/calendar-model.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c
index cef066c1b1..83448d01f8 100644
--- a/calendar/gui/calendar-model.c
+++ b/calendar/gui/calendar-model.c
@@ -239,6 +239,12 @@ calendar_model_init (CalendarModel *model)
priv->zone = NULL;
priv->activity = NULL;
+
+ /* Preload here, to avoid corba calls later */
+ /* Gross hack because gnome-canvas is not re-entrant */
+ calendar_config_get_tasks_due_today_color ();
+ calendar_config_get_tasks_overdue_color ();
+ g_free (calendar_config_get_hide_completed_tasks_sexp ());
}
static void
@@ -1732,7 +1738,7 @@ calendar_model_value_to_string (ETableModel *etm, int col, const void *value)
case CAL_COMPONENT_FIELD_PERCENT:
if (GPOINTER_TO_INT (value) < 0)
- return NULL;
+ return g_strdup ("N/A");
else
return g_strdup_printf ("%i%%", GPOINTER_TO_INT (value));