aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-itip-control.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/e-itip-control.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/e-itip-control.c')
-rw-r--r--calendar/gui/e-itip-control.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c
index f2415aaf33..56979ed85b 100644
--- a/calendar/gui/e-itip-control.c
+++ b/calendar/gui/e-itip-control.c
@@ -149,7 +149,6 @@ cal_opened_cb (ECal *ecal, ECalendarStatus status, gpointer data)
EItipControlPrivate *priv;
ESource *source;
ECalSourceType source_type;
- icaltimezone *zone;
priv = itip->priv;
@@ -164,9 +163,6 @@ cal_opened_cb (ECal *ecal, ECalendarStatus status, gpointer data)
return;
}
- zone = calendar_config_get_icaltimezone ();
- e_cal_set_default_timezone (ecal, zone, NULL);
-
priv->current_ecal = ecal;
set_ok_sens (itip);
}
@@ -178,6 +174,7 @@ start_calendar_server (EItipControl *itip, ESource *source, ECalSourceType type,
{
EItipControlPrivate *priv;
ECal *ecal;
+ icaltimezone *zone;
priv = itip->priv;
@@ -189,6 +186,10 @@ start_calendar_server (EItipControl *itip, ESource *source, ECalSourceType type,
}
ecal = auth_new_cal_from_source (source, type);
+
+ zone = calendar_config_get_icaltimezone ();
+ e_cal_set_default_timezone (ecal, zone, NULL);
+
g_signal_connect (G_OBJECT (ecal), "cal_opened", G_CALLBACK (func), data);
g_hash_table_insert (priv->ecals[type], g_strdup (e_source_peek_uid (source)), ecal);
@@ -246,7 +247,6 @@ find_cal_opened_cb (ECal *ecal, ECalendarStatus status, gpointer data)
ESource *source;
ECalSourceType source_type;
icalcomponent *icalcomp;
- icaltimezone *zone;
source_type = e_cal_get_source_type (ecal);
source = e_cal_get_source (ecal);
@@ -270,9 +270,6 @@ find_cal_opened_cb (ECal *ecal, ECalendarStatus status, gpointer data)
set_ok_sens (fd->itip);
}
- zone = calendar_config_get_icaltimezone ();
- e_cal_set_default_timezone (ecal, zone, NULL);
-
cleanup:
if (fd->count == 0) {
if (fd->show_selector && !priv->current_ecal && priv->vbox) {