diff options
author | JP Rosevear <jpr@ximian.com> | 2004-02-06 11:03:46 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-02-06 11:03:46 +0800 |
commit | 9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd (patch) | |
tree | ea90ec6bdbaa2642c2112096c01cc892c08cd006 /calendar/gui/dialogs/task-page.c | |
parent | f50cbd6b5ec4ab3616e693e83ececd617f559521 (diff) | |
download | gsoc2013-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/task-page.c')
-rw-r--r-- | calendar/gui/dialogs/task-page.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index 33fce5a6c1..e42b1fdd42 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -260,7 +260,6 @@ task_page_fill_widgets (CompEditorPage *page, ECalComponent *comp) GSList *l; const char *categories; icaltimezone *zone, *default_zone; - char *location; ESource *source; tpage = TASK_PAGE (page); @@ -286,8 +285,7 @@ task_page_fill_widgets (CompEditorPage *page, ECalComponent *comp) } e_cal_component_free_text_list (l); - location = calendar_config_get_timezone (); - default_zone = icaltimezone_get_builtin_timezone (location); + default_zone = calendar_config_get_icaltimezone (); /* Due Date. */ e_cal_component_get_due (comp, &d); @@ -823,7 +821,6 @@ init_widgets (TaskPage *tpage) { TaskPagePrivate *priv; GtkTextBuffer *text_buffer; - char *location; icaltimezone *zone; priv = tpage->priv; @@ -889,8 +886,7 @@ init_widgets (TaskPage *tpage) G_CALLBACK (source_changed_cb), tpage); /* 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->due_timezone), zone); |