diff options
-rw-r--r-- | my-evolution/ChangeLog | 6 | ||||
-rw-r--r-- | my-evolution/e-summary-calendar.c | 30 |
2 files changed, 30 insertions, 6 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog index 8c93c37ef4..03d42a0a5f 100644 --- a/my-evolution/ChangeLog +++ b/my-evolution/ChangeLog @@ -1,5 +1,11 @@ 2001-07-09 Iain Holmes <iain@ximian.com> + * e-summary-calendar.c (generate_html): Fix up the HTML so having + appointments doesn't mess up the display. Set the correct length of + time to show appointments. + +2001-07-09 Iain Holmes <iain@ximian.com> + * e-summary-tasks.c (generate_html): Make the tasks switch to the tasks folder when you click on them. diff --git a/my-evolution/e-summary-calendar.c b/my-evolution/e-summary-calendar.c index 71e3e4670b..ef4c108cec 100644 --- a/my-evolution/e-summary-calendar.c +++ b/my-evolution/e-summary-calendar.c @@ -143,15 +143,33 @@ generate_html (gpointer data) GList *uids, *l; GString *string; char *tmp; - time_t t, day_begin, day_end; + time_t t, begin, end, f; t = time (NULL); - day_begin = time_day_begin (t); - day_end = time_day_end (t); + begin = time_day_begin (t); + switch (summary->preferences->days) { + case E_SUMMARY_CALENDAR_ONE_DAY: + end = time_day_end (t); + break; + + case E_SUMMARY_CALENDAR_FIVE_DAYS: + f = time_add_day (t, 5); + end = time_day_end (f); + break; + + case E_SUMMARY_CALENDAR_ONE_WEEK: + f = time_add_week (t, 1); + end = time_day_end (f); + break; + + case E_SUMMARY_CALENDAR_ONE_MONTH: + f = time_add_month (t, 1); + end = time_day_end (f); + break; + } uids = cal_client_get_objects_in_range (calendar->client, - CALOBJ_TYPE_EVENT, day_begin, - day_end); + CALOBJ_TYPE_EVENT, begin, end); if (uids == NULL) { char *s1, *s2; @@ -219,7 +237,7 @@ generate_html (gpointer data) } cal_obj_uid_list_free (uids); - g_string_append (string, "</ul>"); + g_string_append (string, "</dd></dl>"); } if (calendar->html) { |