aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-06-05 03:46:35 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-06-05 03:46:35 +0800
commit342de51c7d93f94c9b19444547cac2a5f6441c2f (patch)
tree85808db46317dc792788533ca85316f10fb486ce
parent7e9b55a30e8e6b76da4f6727606cb8e29afcc7d6 (diff)
downloadgsoc2013-evolution-342de51c7d93f94c9b19444547cac2a5f6441c2f.tar
gsoc2013-evolution-342de51c7d93f94c9b19444547cac2a5f6441c2f.tar.gz
gsoc2013-evolution-342de51c7d93f94c9b19444547cac2a5f6441c2f.tar.bz2
gsoc2013-evolution-342de51c7d93f94c9b19444547cac2a5f6441c2f.tar.lz
gsoc2013-evolution-342de51c7d93f94c9b19444547cac2a5f6441c2f.tar.xz
gsoc2013-evolution-342de51c7d93f94c9b19444547cac2a5f6441c2f.tar.zst
gsoc2013-evolution-342de51c7d93f94c9b19444547cac2a5f6441c2f.zip
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
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/dialogs/recurrence-page.c14
-rw-r--r--calendar/gui/dialogs/task-details-page.h2
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);