From 2d0ca7939abde5a7cfe1dcbb974e52939637e5a9 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 30 Jun 2009 14:54:43 +0200 Subject: Bug #245723 - Show days with transparent events in italic --- widgets/misc/e-calendar-item.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'widgets/misc/e-calendar-item.h') diff --git a/widgets/misc/e-calendar-item.h b/widgets/misc/e-calendar-item.h index f86fc4fd79..936e86ebab 100644 --- a/widgets/misc/e-calendar-item.h +++ b/widgets/misc/e-calendar-item.h @@ -41,7 +41,8 @@ G_BEGIN_DECLS #define E_CALENDAR_COLS_PER_MONTH 7 /* Used to mark days as bold in e_calendar_item_mark_day(). */ -#define E_CALENDAR_ITEM_MARK_BOLD 1 +#define E_CALENDAR_ITEM_MARK_BOLD (1 << 0) +#define E_CALENDAR_ITEM_MARK_ITALIC (1 << 1) /* * These are the padding sizes between various pieces of the calendar. @@ -101,6 +102,7 @@ typedef void (*ECalendarItemStyleCallback) (ECalendarItem *calitem, GdkColor **fg_color, GdkColor **box_color, gboolean *bold, + gboolean *italic, gpointer data); /* The type of the callback function optionally used to get the current time. @@ -329,7 +331,8 @@ void e_calendar_item_mark_day (ECalendarItem *calitem, gint year, gint month, gint day, - guint8 day_style); + guint8 day_style, + gboolean add_day_style); /* Mark a range of days. Any days outside the currently shown range are ignored. */ @@ -340,7 +343,8 @@ void e_calendar_item_mark_days (ECalendarItem *calitem, gint end_year, gint end_month, gint end_day, - guint8 day_style); + guint8 day_style, + gboolean add_day_style); /* Sets the function to call to get the colors to use for a particular day. */ void e_calendar_item_set_style_callback (ECalendarItem *calitem, -- cgit