update the blocked/selected days if the starting day of the appointment

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

svn path=/trunk/; revision=10113
This commit is contained in:
JP Rosevear
2001-06-04 19:46:35 +00:00
committed by JP Rosevear
parent 7e9b55a30e
commit 342de51c7d
3 changed files with 23 additions and 1 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -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);