diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-09-04 08:43:06 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-09-04 08:43:06 +0800 |
commit | 84fa00e42a593a4e4e64866090df30c9d7c066b9 (patch) | |
tree | 2c5c5f1566aad424cdc537f55cf08d8c7e3bea1d /calendar/gui/mark.h | |
parent | de704a7b4576df4f84ed859c7d3337cce0f89e57 (diff) | |
download | gsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.tar gsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.tar.gz gsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.tar.bz2 gsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.tar.lz gsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.tar.xz gsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.tar.zst gsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.zip |
Finished with the properties dialog. You can jump to days from the year
Finished with the properties dialog. You can jump to days from the year view
now. I'm off to rewrite gnome-popupmenu and friends.
1998-09-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-full-day.c (gncal_full_day_forall): Updated foreach ->
forall from Gtk changes, bleah.
* year-view.c (day_event): New function to handle events from
days. Jumps to the day that is clicked.
* main.c: Use a watch cursor while the previous/today/next
functions are doing their job.
* mark.c (month_item_prepare_prelight): New public utility
function to prepare a month item for prelighting. It will store
the proper prelight information and attach the appropriate signals.
(mark_current_day): Make the current day bold as well (useful for
color-blind people, I guess).
* prop.c (set_current_day): Reset the date in the sample calendar
and mark the current day.
(fake_mark_days): Mark fake events in the sample calendar.
* year-view.c (year_view_set): Use the general prelighting engine.
* goto.c (day_event): Just process button presses, as prelighting
is done behind the scenes now.
(update): Use the general prelighting engine.
* prop.c (create_colors_page): We can now configure the colors of
svn path=/trunk/; revision=361
Diffstat (limited to 'calendar/gui/mark.h')
-rw-r--r-- | calendar/gui/mark.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/calendar/gui/mark.h b/calendar/gui/mark.h index 9ffafe20a7..0b849e96cc 100644 --- a/calendar/gui/mark.h +++ b/calendar/gui/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 |