diff options
Diffstat (limited to 'calendar/mark.h')
-rw-r--r-- | calendar/mark.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/calendar/mark.h b/calendar/mark.h index 0b849e96cc..0d9491e0a5 100644 --- a/calendar/mark.h +++ b/calendar/mark.h @@ -18,28 +18,34 @@ #define CURRENT_DAY_FONT "-adobe-helvetica-bold-r-normal--12-*-72-72-p-*-iso8859-1" +/* Functions of this type are used by the marking functions to fetch color specifications. Such + * a function must return a color spec based on the property passed to it. + */ +typedef char * (* GetColorFunc) (ColorProp propnum, gpointer data); + + +/* Sets the user-configured colors and font for a month item. It also tags the days as unmarked. */ +void colorify_month_item (GnomeMonthItem *month, GetColorFunc func, gpointer func_data); + /* 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. */ void mark_month_item (GnomeMonthItem *mitem, Calendar *cal); +/* Marks a day specified by index, not by day number */ +void mark_month_item_index (GnomeMonthItem *mitem, int index, GetColorFunc func, gpointer func_data); + /* 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); +/* Prepares a monthly calendar item to prelight when the mouse goes over the days. */ -void month_item_prepare_prelight (GnomeMonthItem *mitem, GetPrelightColorFunc func, gpointer func_data); +void month_item_prepare_prelight (GnomeMonthItem *mitem, GetColorFunc 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); +char *default_color_func (ColorProp prop_num, gpointer data); #endif |