From bef945a68687702cbcf0cbc4227ac33297ad94b0 Mon Sep 17 00:00:00 2001 From: karl-qdh Date: Wed, 16 Feb 2011 14:31:25 +0000 Subject: Syncup --- src/datetime-service.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/datetime-service.c b/src/datetime-service.c index a33a561..0cba36b 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -636,15 +636,18 @@ update_appointment_menu_items (gpointer user_data) { g_debug("Command to Execute: %s", cmd); - ESource *source = e_cal_get_source (ecal); + // FIXME This is now more difficult to get right with more sources, as we need to keep track + // of which ecal or source goes with each ECalComponent :/ + + //ESource *source = e_cal_get_source (ecal); //e_source_get_color (source, &source_color); api has been changed - const gchar *color_spec = e_source_peek_color_spec(source); - GdkColor color; + const gchar *color_spec = NULL; //e_source_peek_color_spec(source); g_debug("Colour to use: %s", color_spec); // Draw the correct icon for the appointment type and then tint it using mask fill. // For now we'll create a circle if (color_spec != NULL) { + GdkColor color; gdk_color_parse (color_spec, &color); cairo_surface_t *cs = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height); -- cgit v1.2.3