From ae353b456cb569f4beb3e16ae2cf059d9a001c23 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Sat, 17 Jan 2004 23:34:46 +0000 Subject: month and week view printing works again, day view is next to fix 2004-01-18 Radek Doulik * gui/print.c (print_border_with_triangles): use rgb color as fillcolor (print_week_day_event): ditto * gui/e-cal-model.c (e_cal_model_get_rgb_color_for_component): new helper function, gets component color as rgb double values * gui/print.c (print_week_summary_cb): uncommented and updated for e_cal_model_generate_instances (print_week_summary): use e_cal_model_generate_instances (print_border_with_triangles): pass rgb fillcolor (print_border_rgb): new function to print border with rgb color background * gui/e-cal-model.c (e_cal_model_generate_instances): new function, similar to e_cal_generate_instances. see comments to understand how to use cb_data svn path=/trunk/; revision=24292 --- calendar/gui/e-cal-model.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'calendar/gui/e-cal-model.h') diff --git a/calendar/gui/e-cal-model.h b/calendar/gui/e-cal-model.h index 9f193b4f07..6cb3f6ba30 100644 --- a/calendar/gui/e-cal-model.h +++ b/calendar/gui/e-cal-model.h @@ -63,6 +63,11 @@ typedef struct { ECellDateEditValue *completed; } ECalModelComponent; +typedef struct { + ECalModelComponent *comp_data; + gpointer cb_data; +} ECalModelGenerateInstancesData; + typedef struct { ETableModel model; ECalModelPrivate *priv; @@ -100,11 +105,13 @@ void e_cal_model_set_query (ECalModel *model, const gchar *sexp); icalcomponent *e_cal_model_create_component_with_defaults (ECalModel *model); const gchar *e_cal_model_get_color_for_component (ECalModel *model, ECalModelComponent *comp_data); +gboolean e_cal_model_get_rgb_color_for_component (ECalModel *model, ECalModelComponent *comp_data, double *red, double *green, double *blue); ECalModelComponent *e_cal_model_get_component_at (ECalModel *model, gint row); gchar *e_cal_model_date_value_to_string (ECalModel *model, const void *value); void e_cal_model_free_component_data (ECalModelComponent *comp_data); +void e_cal_model_generate_instances (ECalModel *model, time_t start, time_t end, ECalRecurInstanceFn cb, gpointer cb_data); G_END_DECLS -- cgit