aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/event-page.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-02-06 11:03:46 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-02-06 11:03:46 +0800
commit9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd (patch)
treeea90ec6bdbaa2642c2112096c01cc892c08cd006 /calendar/gui/dialogs/event-page.c
parentf50cbd6b5ec4ab3616e693e83ececd617f559521 (diff)
downloadgsoc2013-evolution-9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd.tar
gsoc2013-evolution-9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd.tar.gz
gsoc2013-evolution-9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd.tar.bz2
gsoc2013-evolution-9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd.tar.lz
gsoc2013-evolution-9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd.tar.xz
gsoc2013-evolution-9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd.tar.zst
gsoc2013-evolution-9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd.zip
Convert the calendar_config_get_timezone and
2004-02-05 JP Rosevear <jpr@ximian.com> * Convert the calendar_config_get_timezone and icaltimezone_get_builtin_timezone pair to just calendar_config_get_icaltimezone, this also guarantees we will have some timezone (even if its just UTC) svn path=/trunk/; revision=24642
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r--calendar/gui/dialogs/event-page.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 5b04b9694a..cffa9f2e9a 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -324,11 +324,8 @@ update_time (EventPage *epage, ECalComponentDateTime *start_date, ECalComponentD
/* If it is an all day event, we set both timezones to the current
timezone, so that if the user toggles the 'All Day Event' checkbox
the event uses the current timezone rather than none at all. */
- if (all_day_event) {
- char *location = calendar_config_get_timezone ();
- start_zone = end_zone = icaltimezone_get_builtin_timezone (location);
- }
-
+ if (all_day_event)
+ start_zone = end_zone = calendar_config_get_icaltimezone ();
gtk_signal_handler_block_by_data (GTK_OBJECT (priv->start_time),
epage);
@@ -1241,7 +1238,6 @@ init_widgets (EventPage *epage)
{
EventPagePrivate *priv;
GtkTextBuffer *text_buffer;
- char *location;
icaltimezone *zone;
priv = epage->priv;
@@ -1327,8 +1323,7 @@ init_widgets (EventPage *epage)
G_CALLBACK (source_changed_cb), epage);
/* Set the default timezone, so the timezone entry may be hidden. */
- location = calendar_config_get_timezone ();
- zone = icaltimezone_get_builtin_timezone (location);
+ zone = calendar_config_get_icaltimezone ();
e_timezone_entry_set_default_timezone (E_TIMEZONE_ENTRY (priv->start_timezone), zone);
e_timezone_entry_set_default_timezone (E_TIMEZONE_ENTRY (priv->end_timezone), zone);