aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.h
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-06-10 12:26:24 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-06-10 12:26:24 +0800
commit6fb3b7c6de68f783220aaa18996803508c6f1102 (patch)
tree841f319289db5b5cdd7793fce011db958c1deeb7 /calendar/gui/e-week-view.h
parent3be1418c8a85a8bb85ff3bb7b8fe50b34021899b (diff)
downloadgsoc2013-evolution-6fb3b7c6de68f783220aaa18996803508c6f1102.tar
gsoc2013-evolution-6fb3b7c6de68f783220aaa18996803508c6f1102.tar.gz
gsoc2013-evolution-6fb3b7c6de68f783220aaa18996803508c6f1102.tar.bz2
gsoc2013-evolution-6fb3b7c6de68f783220aaa18996803508c6f1102.tar.lz
gsoc2013-evolution-6fb3b7c6de68f783220aaa18996803508c6f1102.tar.xz
gsoc2013-evolution-6fb3b7c6de68f783220aaa18996803508c6f1102.tar.zst
gsoc2013-evolution-6fb3b7c6de68f783220aaa18996803508c6f1102.zip
calculate the work week, week, and month views more exactly
2004-06-09 JP Rosevear <jpr@novell.com> * gui/gnome-cal.c (get_times_for_views): calculate the work week, week, and month views more exactly (update_adjustment): update the view based on week view scrolling (setup_widgets): listen for the scroll bar moving on the week views (gnome_calendar_update_date_navigator): adjust for compressed weekends in the month view (gnome_calendar_on_date_navigator_selection_changed): ditto * gui/e-week-view.h: add protos * gui/e-week-view.c (time_range_changed_cb): calculate the base_date and first_day_shown more simply, allows multi-week selection to work better; update the base date when told to do so (e_week_view_init): init update_base_value var (e_week_view_get_update_base_date): accessor (e_week_view_set_update_base_date): ditto svn path=/trunk/; revision=26276
Diffstat (limited to 'calendar/gui/e-week-view.h')
-rw-r--r--calendar/gui/e-week-view.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/calendar/gui/e-week-view.h b/calendar/gui/e-week-view.h
index 00e10d84f6..b641287916 100644
--- a/calendar/gui/e-week-view.h
+++ b/calendar/gui/e-week-view.h
@@ -204,6 +204,8 @@ struct _EWeekView
one week is shown, with a different layout. */
gboolean multi_week_view;
+ gboolean update_base_date;
+
/* How many weeks we are showing. This is only relevant if
display_month is TRUE. */
gint weeks_shown;
@@ -359,6 +361,10 @@ gboolean e_week_view_get_multi_week_view (EWeekView *week_view);
void e_week_view_set_multi_week_view (EWeekView *week_view,
gboolean multi_week_view);
+/* Whether to update the base date when the time range changes */
+gboolean e_week_view_get_update_base_date (EWeekView *week_view);
+void e_week_view_set_update_base_date (EWeekView *week_view, gboolean update_base_date);
+
/* The number of weeks shown in the multi-week view. */
gint e_week_view_get_weeks_shown (EWeekView *week_view);
void e_week_view_set_weeks_shown (EWeekView *week_view,