From d4e79bae46785f6486c5304738a908300aa626a5 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Sat, 24 Jan 2004 21:29:13 +0000 Subject: use the colors from the model as background, not as foreground. 2004-01-24 Rodrigo Moya * gui/e-calendar-table.c (e_calendar_table_init): use the colors from the model as background, not as foreground. * gui/e-cal-model-tasks.c (ecmt_get_color_for_component): return the color assigned to each URI if it's not overdue. svn path=/trunk/; revision=24413 --- calendar/ChangeLog | 8 ++++++++ calendar/gui/e-cal-model-tasks.c | 3 +-- calendar/gui/e-calendar-table.c | 14 +++++++------- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index fbc2cde5e2..631af9fbfd 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2004-01-24 Rodrigo Moya + + * gui/e-calendar-table.c (e_calendar_table_init): use the colors from + the model as background, not as foreground. + + * gui/e-cal-model-tasks.c (ecmt_get_color_for_component): return the + color assigned to each URI if it's not overdue. + 2004-01-24 JP Rosevear * gui/tasks-component.c (setup_create_ecal): listen for the diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c index edfb5d8b3d..99c337905f 100644 --- a/calendar/gui/e-cal-model-tasks.c +++ b/calendar/gui/e-cal-model-tasks.c @@ -959,8 +959,7 @@ ecmt_get_color_for_component (ECalModel *model, ECalModelComponent *comp_data) break; } - return "black"; - /* return E_CAL_MODEL_CLASS (parent_class)->get_color_for_component (model, comp_data); */ + return E_CAL_MODEL_CLASS (parent_class)->get_color_for_component (model, comp_data); } static void diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c index eff99818ad..72e3311a4f 100644 --- a/calendar/gui/e-calendar-table.c +++ b/calendar/gui/e-calendar-table.c @@ -321,7 +321,7 @@ e_calendar_table_init (ECalendarTable *cal_table) g_object_set (G_OBJECT (cell), "strikeout_column", E_CAL_MODEL_TASKS_FIELD_COMPLETE, "bold_column", E_CAL_MODEL_TASKS_FIELD_OVERDUE, - "color_column", E_CAL_MODEL_FIELD_COLOR, + "bg_color_column", E_CAL_MODEL_FIELD_COLOR, NULL); e_table_extras_add_cell (extras, "calstring", cell); @@ -334,7 +334,7 @@ e_calendar_table_init (ECalendarTable *cal_table) g_object_set (G_OBJECT (cell), "strikeout_column", E_CAL_MODEL_TASKS_FIELD_COMPLETE, "bold_column", E_CAL_MODEL_TASKS_FIELD_OVERDUE, - "color_column", E_CAL_MODEL_FIELD_COLOR, + "bg_color_column", E_CAL_MODEL_FIELD_COLOR, NULL); popup_cell = e_cell_date_edit_new (); @@ -357,7 +357,7 @@ e_calendar_table_init (ECalendarTable *cal_table) g_object_set (G_OBJECT (cell), "strikeout_column", E_CAL_MODEL_TASKS_FIELD_COMPLETE, "bold_column", E_CAL_MODEL_TASKS_FIELD_OVERDUE, - "color_column", E_CAL_MODEL_FIELD_COLOR, + "bg_color_column", E_CAL_MODEL_FIELD_COLOR, "editable", FALSE, NULL); @@ -379,7 +379,7 @@ e_calendar_table_init (ECalendarTable *cal_table) g_object_set (G_OBJECT (cell), "strikeout_column", E_CAL_MODEL_TASKS_FIELD_COMPLETE, "bold_column", E_CAL_MODEL_TASKS_FIELD_OVERDUE, - "color_column", E_CAL_MODEL_FIELD_COLOR, + "bg_color_column", E_CAL_MODEL_FIELD_COLOR, "editable", FALSE, NULL); @@ -402,7 +402,7 @@ e_calendar_table_init (ECalendarTable *cal_table) g_object_set (G_OBJECT (cell), "strikeout_column", E_CAL_MODEL_TASKS_FIELD_COMPLETE, "bold_column", E_CAL_MODEL_TASKS_FIELD_OVERDUE, - "color_column", E_CAL_MODEL_FIELD_COLOR, + "bg_color_column", E_CAL_MODEL_FIELD_COLOR, NULL); popup_cell = e_cell_combo_new (); @@ -431,7 +431,7 @@ e_calendar_table_init (ECalendarTable *cal_table) g_object_set (G_OBJECT (cell), "strikeout_column", E_CAL_MODEL_TASKS_FIELD_COMPLETE, "bold_column", E_CAL_MODEL_TASKS_FIELD_OVERDUE, - "color_column", E_CAL_MODEL_FIELD_COLOR, + "bg_color_column", E_CAL_MODEL_FIELD_COLOR, "editable", FALSE, NULL); @@ -452,7 +452,7 @@ e_calendar_table_init (ECalendarTable *cal_table) g_object_set (G_OBJECT (cell), "strikeout_column", E_CAL_MODEL_TASKS_FIELD_COMPLETE, "bold_column", E_CAL_MODEL_TASKS_FIELD_OVERDUE, - "color_column", E_CAL_MODEL_FIELD_COLOR, + "bg_color_column", E_CAL_MODEL_FIELD_COLOR, "editable", FALSE, NULL); -- cgit v1.2.3