From e9a632c3c15bac86946af5f6d75a79517b4c6a07 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 1 Oct 1998 23:47:01 +0000 Subject: Use the font #defines. (month_view_new): Set the colors of the month view 1998-10-01 Federico Mena Quintero * month-view.c (month_view_init): Use the font #defines. (month_view_new): Set the colors of the month view upon creation. (mark_current_day): New function to mark the current day in the month view. (month_view_set): Mark the current day. (month_view_colors_changed): Mark the current day and colorify the month item appropriately. * month-view.h: Added year and month fields to the MonthView structure. * main.c: Renamed the Appointments color property, since it will be used by the month view as well. * goto.c (update): Set the current day's font and color. * year-view.c (year_view_init): Set the fonts of the month items when creating them. * mark.h: Added new #defines for HEADING_FONT and TITLE_FONT. * year-view.c (year_view_init): Use the new font #defines. * prop.c (prop_apply_colors): Fixed to work with the I-am-paranoid-and-I-need-to-size-my-ints changes to GnomeColorPicker. (color_spec_from_picker): Likewise. svn path=/trunk/; revision=424 --- calendar/gnome-month-item.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'calendar/gnome-month-item.c') diff --git a/calendar/gnome-month-item.c b/calendar/gnome-month-item.c index fa1ea79e48..1eb8412f5c 100644 --- a/calendar/gnome-month-item.c +++ b/calendar/gnome-month-item.c @@ -12,6 +12,7 @@ #include "gnome-month-item.h" +#define DEFAULT_FONT "-*-helvetica-medium-r-normal--10-*-*-*-p-*-*-*" /* Number of days in a month, for normal and leap years */ @@ -767,13 +768,13 @@ gnome_month_item_init (GnomeMonthItem *mitem) /* Load the default fonts */ - mitem->head_font = gdk_font_load ("-*-helvetica-medium-r-normal--10-*-*-*-p-*-iso8859-1"); + mitem->head_font = gdk_font_load (DEFAULT_FONT); if (!mitem->head_font) { mitem->head_font = gdk_font_load ("fixed"); g_assert (mitem->head_font != NULL); } - mitem->day_font = gdk_font_load ("-adobe-helvetica-medium-r-normal--10-*-72-72-p-*-iso8859-1"); + mitem->day_font = gdk_font_load (DEFAULT_FONT); if (!mitem->day_font) { mitem->day_font = gdk_font_load ("fixed"); g_assert (mitem->day_font != NULL); -- cgit v1.2.3