From 748fba56030267900cef03332ad4a57b3db2085c Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 6 Nov 2001 00:02:47 +0000 Subject: add a changed signal (e_meeting_time_selector_construct): emit changed 2001-11-05 JP Rosevear * gui/e-meeting-time-sel.c (e_meeting_time_selector_class_init): add a changed signal (e_meeting_time_selector_construct): emit changed signal (e_meeting_time_selector_set_meeting_time): ditto (e_meeting_time_selector_set_all_day): set the all day setting (e_meeting_time_selector_autopick): emit changed signal (e_meeting_time_selector_find_nearest_interval): find proper interval when in all day mode (e_meeting_time_selector_find_nearest_interval_backward): ditto (e_meeting_time_selector_drag_meeting_time): for all day events, move the time when past the 12 hour mark, and and always make sure 1 full day is selected, emit changed signal when appropriate (e_meeting_time_selector_update_start_date_edit): set date and time of day together (e_meeting_time_selector_update_end_date_edit): ditto, and adjust display time if all day event * gui/e-meeting-time-sel-item.c (e_meeting_time_selector_item_draw): remove unused variable (e_meeting_time_selector_item_button_press): for all day mode, make the interval a whole day * gui/dialogs/schedule-page.c (update_time): set the meeting time selector setting instead of manual mucking with the e-date-edit widgets (init_widgets): listen to the changed signal of the meeting time selector instead of propagating multiple events as it updates * gui/dialogs/event-page.c (update_time): block time zone change signals svn path=/trunk/; revision=14601 --- calendar/gui/e-meeting-time-sel.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'calendar/gui/e-meeting-time-sel.h') diff --git a/calendar/gui/e-meeting-time-sel.h b/calendar/gui/e-meeting-time-sel.h index eb66c523e2..30c1abefa7 100644 --- a/calendar/gui/e-meeting-time-sel.h +++ b/calendar/gui/e-meeting-time-sel.h @@ -183,6 +183,9 @@ struct _EMeetingTimeSelector * Option Settings. */ + /* True if we are selecting all day events */ + gboolean all_day; + /* If this is TRUE we only show hours between day_start_hour and day_end_hour, defaults to TRUE (9am-6pm). */ gboolean working_hours_only; @@ -252,6 +255,8 @@ struct _EMeetingTimeSelector struct _EMeetingTimeSelectorClass { GtkTableClass parent_class; + + void (* changed) (EMeetingTimeSelector *mts); }; @@ -293,6 +298,8 @@ gboolean e_meeting_time_selector_set_meeting_time (EMeetingTimeSelector *mts, gint end_hour, gint end_minute); +void e_meeting_time_selector_set_all_day (EMeetingTimeSelector *mts, + gboolean all_day); void e_meeting_time_selector_set_working_hours_only (EMeetingTimeSelector *mts, gboolean working_hours_only); void e_meeting_time_selector_set_working_hours (EMeetingTimeSelector *mts, -- cgit v1.2.3