aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/recurrence-page.c14
-rw-r--r--calendar/gui/dialogs/task-details-page.h2
2 files changed, 15 insertions, 1 deletions
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);