aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/weekday-picker.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-12-03 02:10:20 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-12-03 02:10:20 +0800
commitb4680776083616beb63924706995a321622cd1cc (patch)
tree6f61b3b145acd3b533589ee6fc23f0fdc4baed6d /calendar/gui/weekday-picker.h
parentf70c74f37110d1bcb23227c720965a058cabf61c (diff)
downloadgsoc2013-evolution-b4680776083616beb63924706995a321622cd1cc.tar
gsoc2013-evolution-b4680776083616beb63924706995a321622cd1cc.tar.gz
gsoc2013-evolution-b4680776083616beb63924706995a321622cd1cc.tar.bz2
gsoc2013-evolution-b4680776083616beb63924706995a321622cd1cc.tar.lz
gsoc2013-evolution-b4680776083616beb63924706995a321622cd1cc.tar.xz
gsoc2013-evolution-b4680776083616beb63924706995a321622cd1cc.tar.zst
gsoc2013-evolution-b4680776083616beb63924706995a321622cd1cc.zip
Fixes bug #918.
2000-12-01 Federico Mena Quintero <federico@helixcode.com> Fixes bug #918. * gui/weekday-picker.c (WeekdayPickerPrivate): Added a field for a set of blocked days. (weekday_picker_set_blocked_days): New function to configure a set of days that cannot be modified by the user. (weekday_picker_get_blocked_days): Query function for the above. (day_event_cb): Block the appropriate days from being modified. * gui/event-editor.c (get_start_weekday_mask): New function to compute a day mask for the start day of a calendar component. (set_recur_special_defaults): New function to set sane defaults for the recurrence special widgets. (fill_recurrence_widgets): Use set_recur_special_defaults(). (make_recur_weekly_special): Block the appropriate days. svn path=/trunk/; revision=6767
Diffstat (limited to 'calendar/gui/weekday-picker.h')
-rw-r--r--calendar/gui/weekday-picker.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/calendar/gui/weekday-picker.h b/calendar/gui/weekday-picker.h
index cd24bb86e4..cf2367c511 100644
--- a/calendar/gui/weekday-picker.h
+++ b/calendar/gui/weekday-picker.h
@@ -60,6 +60,9 @@ GtkWidget *weekday_picker_new (void);
void weekday_picker_set_days (WeekdayPicker *wp, guint8 day_mask);
guint8 weekday_picker_get_days (WeekdayPicker *wp);
+void weekday_picker_set_blocked_days (WeekdayPicker *wp, guint8 blocked_day_mask);
+guint weekday_picker_get_blocked_days (WeekdayPicker *wp);
+
void weekday_picker_set_week_starts_on_monday (WeekdayPicker *wp, gboolean on_monday);
gboolean weekday_picker_get_week_starts_on_monday (WeekdayPicker *wp);