aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-model.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-10-23 00:43:05 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-10-23 00:43:05 +0800
commit731caf5eb269c46696c1cacf63a8e088d0464d93 (patch)
tree2906f2ec48f1a252fe9983ea1f07dee8f35b4f22 /calendar/gui/calendar-model.c
parentbcb4183d7fac8fd40465838ef0728101f04e6811 (diff)
downloadgsoc2013-evolution-731caf5eb269c46696c1cacf63a8e088d0464d93.tar
gsoc2013-evolution-731caf5eb269c46696c1cacf63a8e088d0464d93.tar.gz
gsoc2013-evolution-731caf5eb269c46696c1cacf63a8e088d0464d93.tar.bz2
gsoc2013-evolution-731caf5eb269c46696c1cacf63a8e088d0464d93.tar.lz
gsoc2013-evolution-731caf5eb269c46696c1cacf63a8e088d0464d93.tar.xz
gsoc2013-evolution-731caf5eb269c46696c1cacf63a8e088d0464d93.tar.zst
gsoc2013-evolution-731caf5eb269c46696c1cacf63a8e088d0464d93.zip
use e_config_listener_* to get values (itip_addresses_get): ditto
2002-10-22 JP Rosevear <jpr@ximian.com> * gui/itip-utils.c (get_address): use e_config_listener_* to get values (itip_addresses_get): ditto (itip_addresses_get_default): ditto * gui/calendar-model.c (calendar_model_value_to_string): don't send back a null string (affects if it is the group header) (calendar_model_init): pre load config database info so we don't do corba calls during draws svn path=/trunk/; revision=18410
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));