From d1769d5646e9fef3c6de607f9f884b02dd954844 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 30 Sep 1998 20:37:06 +0000 Subject: New function to mark the current day in the year view. 1998-09-30 Federico Mena Quintero * year-view.c (mark_current_day): New function to mark the current day in the year view. * mark.c: Removed mark_current_day from here. svn path=/trunk/; revision=418 --- calendar/mark.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'calendar/mark.c') diff --git a/calendar/mark.c b/calendar/mark.c index 274c9efe30..2de8e2b880 100644 --- a/calendar/mark.c +++ b/calendar/mark.c @@ -100,27 +100,6 @@ mark_event_in_month (GnomeMonthItem *mitem, time_t start, time_t end) } } -static void -mark_current_day (GnomeMonthItem *mitem) -{ - struct tm *tm; - time_t t; - int day_index; - GnomeCanvasItem *item; - - t = time (NULL); - tm = localtime (&t); - - if (((tm->tm_year + 1900) == mitem->year) && (tm->tm_mon == mitem->month)) { - day_index = gnome_month_item_day2index (mitem, tm->tm_mday); - item = gnome_month_item_num2child (mitem, GNOME_MONTH_ITEM_DAY_LABEL + day_index); - gnome_canvas_item_set (item, - "fill_color", color_spec_from_prop (COLOR_PROP_CURRENT_DAY_FG), - "font", CURRENT_DAY_FONT, - NULL); - } -} - void mark_month_item (GnomeMonthItem *mitem, Calendar *cal) { -- cgit