diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 8 | ||||
-rw-r--r-- | calendar/gui/dialogs/recurrence-page.c | 14 | ||||
-rw-r--r-- | calendar/gui/dialogs/task-details-page.h | 2 |
3 files changed, 23 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 877c9e6a4b..2f0b1e412e 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2001-06-04 JP Rosevear <jpr@ximian.com> + + * gui/dialogs/recurrence-page.c (recurrence_page_set_dates): + update the blocked/selected days if the starting day of the + appointment changes, fixes #2188 + + * gui/dialogs/task-details-page.h: tidy proto + 2001-06-03 Ettore Perazzoli <ettore@ximian.com> * gui/e-itip-control.c: #include <bonobo/bonobo-context.h> instead diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c index b4a998f353..77b22a97ac 100644 --- a/calendar/gui/dialogs/recurrence-page.c +++ b/calendar/gui/dialogs/recurrence-page.c @@ -1695,6 +1695,7 @@ recurrence_page_set_dates (CompEditorPage *page, CompEditorPageDates *dates) RecurrencePagePrivate *priv; CalComponentDateTime dt; struct icaltimetype icaltime; + guint8 mask; rpage = RECURRENCE_PAGE (page); priv = rpage->priv; @@ -1716,6 +1717,19 @@ recurrence_page_set_dates (CompEditorPage *page, CompEditorPageDates *dates) *dt.value = icaltime_from_timet (dates->end, FALSE); cal_component_set_dtend (priv->comp, &dt); } + + /* Update the weekday picker if necessary */ + mask = get_start_weekday_mask (priv->comp); + if (mask == priv->weekday_blocked_day_mask) + return; + + priv->weekday_day_mask = priv->weekday_day_mask | mask; + priv->weekday_blocked_day_mask = mask; + + weekday_picker_set_days (priv->weekday_picker, + priv->weekday_day_mask); + weekday_picker_set_blocked_days (priv->weekday_picker, + priv->weekday_blocked_day_mask); } diff --git a/calendar/gui/dialogs/task-details-page.h b/calendar/gui/dialogs/task-details-page.h index d285eb9cc0..555e7d162d 100644 --- a/calendar/gui/dialogs/task-details-page.h +++ b/calendar/gui/dialogs/task-details-page.h @@ -52,7 +52,7 @@ typedef struct { GtkType task_details_page_get_type (void); -TaskDetailsPage *task_details_page_construct (TaskDetailsPage *epage); +TaskDetailsPage *task_details_page_construct (TaskDetailsPage *tdpage); TaskDetailsPage *task_details_page_new (void); |