aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/event-page.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-10-18 18:30:52 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-10-18 18:30:52 +0800
commit2306d4b806323af7d0c1c3ca21cc712e69aa103e (patch)
tree48a0c7bdedf0693726863355bcd7a890c6e9c5b0 /calendar/gui/dialogs/event-page.c
parentc9c7d379de1d9f7c2a219c5cd64df7a630e6519f (diff)
downloadgsoc2013-evolution-2306d4b806323af7d0c1c3ca21cc712e69aa103e.tar
gsoc2013-evolution-2306d4b806323af7d0c1c3ca21cc712e69aa103e.tar.gz
gsoc2013-evolution-2306d4b806323af7d0c1c3ca21cc712e69aa103e.tar.bz2
gsoc2013-evolution-2306d4b806323af7d0c1c3ca21cc712e69aa103e.tar.lz
gsoc2013-evolution-2306d4b806323af7d0c1c3ca21cc712e69aa103e.tar.xz
gsoc2013-evolution-2306d4b806323af7d0c1c3ca21cc712e69aa103e.tar.zst
gsoc2013-evolution-2306d4b806323af7d0c1c3ca21cc712e69aa103e.zip
fixes #308802.
svn path=/trunk/; revision=30526
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r--calendar/gui/dialogs/event-page.c12
1 files changed, 7 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);