diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-10-18 18:30:52 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-10-18 18:30:52 +0800 |
commit | 2306d4b806323af7d0c1c3ca21cc712e69aa103e (patch) | |
tree | 48a0c7bdedf0693726863355bcd7a890c6e9c5b0 /calendar/gui/dialogs | |
parent | c9c7d379de1d9f7c2a219c5cd64df7a630e6519f (diff) | |
download | gsoc2013-evolution-2306d4b806323af7d0c1c3ca21cc712e69aa103e.tar.gz gsoc2013-evolution-2306d4b806323af7d0c1c3ca21cc712e69aa103e.tar.zst gsoc2013-evolution-2306d4b806323af7d0c1c3ca21cc712e69aa103e.zip |
fixes #308802.
svn path=/trunk/; revision=30526
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 12 | ||||
-rw-r--r-- | calendar/gui/dialogs/task-page.c | 7 |
2 files changed, 14 insertions, 5 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index 414aa5ecca..5609259cbe 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -1672,6 +1672,13 @@ source_changed_cb (GtkWidget *widget, ESource *source, gpointer data) ECal *client; client = auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_EVENT); + if (client) { + icaltimezone *zone; + + zone = calendar_config_get_icaltimezone (); + e_cal_set_default_timezone (client, zone, NULL); + } + if (!client || !e_cal_open (client, FALSE, NULL)) { GtkWidget *dialog; @@ -1688,11 +1695,6 @@ source_changed_cb (GtkWidget *widget, ESource *source, gpointer data) gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); } else { - icaltimezone *zone; - - zone = calendar_config_get_icaltimezone (); - e_cal_set_default_timezone (client, zone, NULL); - comp_editor_notify_client_changed ( COMP_EDITOR (gtk_widget_get_toplevel (priv->main)), client); diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index 8b72bb589f..af3e207192 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -859,6 +859,13 @@ source_changed_cb (GtkWidget *widget, ESource *source, gpointer data) ECal *client; client = auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_TODO); + if (client) { + icaltimezone *zone; + + zone = calendar_config_get_icaltimezone (); + e_cal_set_default_timezone (client, zone, NULL); + } + if (!client || !e_cal_open (client, FALSE, NULL)) { GtkWidget *dialog; |