From a0afdf4f53224a55425a8826c0563faa510fa6c5 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Sun, 1 Jul 2001 04:59:24 +0000 Subject: Fixes bug #1406. 2001-06-30 Federico Mena Quintero Fixes bug #1406. * gui/calendar-config.c (config_read): Handle the options for the task list colors. (calendar_config_write): Ditto. (calendar_config_get_tasks_due_today_color): New function. (calendar_config_set_tasks_due_today_color): New function. (calendar_config_get_tasks_overdue_color): New function. (calendar_config_set_tasks_overdue_color): New function. (calendar_config_configure_e_calendar_table): Use e_table_model_changed() for the colors. * gui/dialogs/cal-prefs-dialog.glade: Updated the options for the task list and alarms. * gui/dialogs/cal-prefs-dialog.c (cal_prefs_dialog_show_config): Update the task list settings. (cal_prefs_dialog_update_config): Ditto. * gui/calendar-model.c (get_color): Deal with tasks for today as well as overdue tasks. Make it cleaner, even though we have to duplicate a chunk of is_overdue(). * gui/calendar-commands.c (preferences_cmd): Renamed from properties_cmd(). svn path=/trunk/; revision=10648 --- calendar/gui/calendar-config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'calendar/gui/calendar-config.h') diff --git a/calendar/gui/calendar-config.h b/calendar/gui/calendar-config.h index dc73c3f84e..a1a55a7267 100644 --- a/calendar/gui/calendar-config.h +++ b/calendar/gui/calendar-config.h @@ -134,5 +134,13 @@ void calendar_config_configure_e_cell_date_edit (ECellDateEdit *ecde); /* Shows the timezone dialog if the user hasn't set a default timezone. */ void calendar_config_check_timezone_set (void); +/* Colors for the task list */ + +const char *calendar_config_get_tasks_due_today_color (void); +void calendar_config_set_tasks_due_today_color (const char *color); + +const char *calendar_config_get_tasks_overdue_color (void); +void calendar_config_set_tasks_overdue_color (const char *color); + #endif /* _CALENDAR_CONFIG_H_ */ -- cgit v1.2.3