diff options
Diffstat (limited to 'calendar/mark.h')
-rw-r--r-- | calendar/mark.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/calendar/mark.h b/calendar/mark.h index 9ffafe20a7..0b849e96cc 100644 --- a/calendar/mark.h +++ b/calendar/mark.h @@ -12,6 +12,12 @@ #include "gnome-month-item.h" +/* These are the fonts used for the montly calendars */ + +#define NORMAL_DAY_FONT "-adobe-helvetica-medium-r-normal--10-*-72-72-p-*-iso8859-1" +#define CURRENT_DAY_FONT "-adobe-helvetica-bold-r-normal--12-*-72-72-p-*-iso8859-1" + + /* Takes a monthly calendar item and marks the days that have events scheduled for them in the * specified calendar. It also highlights the current day. */ @@ -20,5 +26,20 @@ void mark_month_item (GnomeMonthItem *mitem, Calendar *cal); /* Unmarks all the days in the specified month item */ void unmark_month_item (GnomeMonthItem *mitem); +/* Prepares a monthly calendar item to prelight when the mouse goes over the days. If it is called + * on a month item that had already been prepared, it updates the internal color buffers -- you need + * to do this if you re-mark the month item, or if you change the global color configuration. The + * specified function is used to query the prelight colors; it must return a color spec. + */ + +typedef char * (* GetPrelightColorFunc) (gpointer data); + +void month_item_prepare_prelight (GnomeMonthItem *mitem, GetPrelightColorFunc func, gpointer func_data); + +/* This is the default prelight function you can use for most puposes. You can use NULL as the + * func_data. + */ +char *default_prelight_func (gpointer data); + #endif |