aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-config.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2002-01-12 08:34:14 +0800
committerDamon Chaplin <damon@src.gnome.org>2002-01-12 08:34:14 +0800
commit0ed7d60f578f81394c8a0ebbc3b838a74576e873 (patch)
tree45248ec7c262ba6937d8462975ba1680056c6795 /calendar/gui/calendar-config.c
parentffe29891a41ddfbf18e776c3b31c883457914fbc (diff)
downloadgsoc2013-evolution-0ed7d60f578f81394c8a0ebbc3b838a74576e873.tar.gz
gsoc2013-evolution-0ed7d60f578f81394c8a0ebbc3b838a74576e873.tar.zst
gsoc2013-evolution-0ed7d60f578f81394c8a0ebbc3b838a74576e873.zip
translate timezone names when displayed. Fixes bug #6544.
2002-01-11 Damon Chaplin <damon@ximian.com> * gui/e-timezone-entry.c: * gui/e-itip-control.c (write_label_piece): * gui/calendar-config.c (on_timezone_set): translate timezone names when displayed. Fixes bug #6544. svn path=/trunk/; revision=15307
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r--calendar/gui/calendar-config.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c
index e0313fe3a7..80f7f856d8 100644
--- a/calendar/gui/calendar-config.c
+++ b/calendar/gui/calendar-config.c
@@ -1000,11 +1000,15 @@ on_timezone_set (GnomeDialog *dialog,
ETimezoneDialog *etd)
{
char *display_name;
+ icaltimezone *zone;
e_timezone_dialog_get_timezone (etd, &display_name);
- if (display_name && display_name[0]) {
- calendar_config_set_timezone (display_name);
+ /* We know it can only be a builtin timezone, since there is no way
+ to set it to anything else. */
+ zone = e_timezone_dialog_get_builtin_timezone (display_name);
+ if (zone) {
+ calendar_config_set_timezone (icaltimezone_get_location (zone));
calendar_config_write ();
update_all_config_settings ();