aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/event-page.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-11-06 08:02:47 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-11-06 08:02:47 +0800
commit748fba56030267900cef03332ad4a57b3db2085c (patch)
treefb477adc76d07a1629bdc841c88ade8e3918b2f2 /calendar/gui/dialogs/event-page.c
parent7424f4066fc2180ade37b8df957a9837bc7ecbd2 (diff)
downloadgsoc2013-evolution-748fba56030267900cef03332ad4a57b3db2085c.tar
gsoc2013-evolution-748fba56030267900cef03332ad4a57b3db2085c.tar.gz
gsoc2013-evolution-748fba56030267900cef03332ad4a57b3db2085c.tar.bz2
gsoc2013-evolution-748fba56030267900cef03332ad4a57b3db2085c.tar.lz
gsoc2013-evolution-748fba56030267900cef03332ad4a57b3db2085c.tar.xz
gsoc2013-evolution-748fba56030267900cef03332ad4a57b3db2085c.tar.zst
gsoc2013-evolution-748fba56030267900cef03332ad4a57b3db2085c.zip
add a changed signal (e_meeting_time_selector_construct): emit changed
2001-11-05 JP Rosevear <jpr@ximian.com> * 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
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r--calendar/gui/dialogs/event-page.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 191f87e306..ff4ec98e59 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -375,20 +375,22 @@ update_time (EventPage *epage, CalComponentDateTime *start_date, CalComponentDat
/* Set the timezones, and set sync_timezones to TRUE if both timezones
are the same. */
- /* FIXME: JPR - why did you add the if check here? It looks like it
- won't work for floating times, where start_zone or end_zone may be
- NULL. */
-#if 0
- if (start_zone && end_zone) {
-#endif
- e_timezone_entry_set_timezone (E_TIMEZONE_ENTRY (priv->start_timezone),
- start_zone);
- e_timezone_entry_set_timezone (E_TIMEZONE_ENTRY (priv->end_timezone),
- end_zone);
- priv->sync_timezones = (start_zone == end_zone) ? TRUE : FALSE;
-#if 0
- }
-#endif
+ gtk_signal_handler_block_by_data (GTK_OBJECT (priv->start_timezone),
+ epage);
+ gtk_signal_handler_block_by_data (GTK_OBJECT (priv->end_timezone), epage);
+
+ e_timezone_entry_set_timezone (E_TIMEZONE_ENTRY (priv->start_timezone),
+ start_zone);
+ e_timezone_entry_set_timezone (E_TIMEZONE_ENTRY (priv->end_timezone),
+ end_zone);
+
+ gtk_signal_handler_unblock_by_data (GTK_OBJECT (priv->start_timezone),
+ epage);
+ gtk_signal_handler_unblock_by_data (GTK_OBJECT (priv->end_timezone),
+ epage);
+
+ priv->sync_timezones = (start_zone == end_zone) ? TRUE : FALSE;
+
}
/* Fills the widgets with default values */