From c8905eabfcb6120fbf7f4ba67043d1780396dc01 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Tue, 21 Aug 2001 19:06:17 +0000 Subject: added new e-sexp operator. We don't currently use it though. 2001-08-21 Damon Chaplin * pcs/query.c (func_is_completed): added new e-sexp operator. We don't currently use it though. * gui/dialogs/cal-prefs-dialog.glade: Changed '_Overdue' to 'O_verdue' since we have an '_Other' notebook tab. Added '_Hide' accel. * gui/dialogs/cal-prefs-dialog.c: hooked up config options to dialog. * gui/calendar-config.c: added config options for hiding completed tasks. * gui/e-week-view-event-item.c (e_week_view_event_item_draw): * gui/e-day-view-top-item.c (e_day_view_top_item_draw_long_event): * gui/e-day-view.c (e_day_view_reshape_long_event): added 2 pixels extra space between icons and text for long events, and 1 pixel space between icons in all events. (e_day_view_realize): changed the background color to match the EGrayBar in the shell. svn path=/trunk/; revision=12347 --- calendar/gui/calendar-config.h | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'calendar/gui/calendar-config.h') diff --git a/calendar/gui/calendar-config.h b/calendar/gui/calendar-config.h index 2979d07d91..83132267f9 100644 --- a/calendar/gui/calendar-config.h +++ b/calendar/gui/calendar-config.h @@ -51,6 +51,14 @@ typedef enum } CalWeekdays; +/* Units for settings. */ +typedef enum +{ + CAL_DAYS, + CAL_HOURS, + CAL_MINUTES +} CalUnits; + void calendar_config_init (void); void calendar_config_write (void); @@ -123,6 +131,23 @@ void calendar_config_set_month_hpane_pos (gfloat hpane_pos); gfloat calendar_config_get_month_vpane_pos (void); void calendar_config_set_month_vpane_pos (gfloat vpane_pos); +/* 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); + +/* Settings to hide completed tasks. */ +gboolean calendar_config_get_hide_completed_tasks (void); +void calendar_config_set_hide_completed_tasks (gboolean hide); + +CalUnits calendar_config_get_hide_completed_tasks_units(void); +void calendar_config_set_hide_completed_tasks_units(CalUnits units); + +gint calendar_config_get_hide_completed_tasks_value(void); +void calendar_config_set_hide_completed_tasks_value(gint value); + /* Convenience functions to configure common properties of ECalendar, EDateEdit & ECalendarTable widgets, and the ECellDateEdit ETable cell. */ @@ -134,12 +159,5 @@ 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