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/gnome-cal.c | |
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/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index a013256744..5a203b31f8 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -2390,7 +2390,6 @@ client_cal_opened_cb (ECal *ecal, ECalendarStatus status, GnomeCalendar *gcal) g_signal_handlers_disconnect_matched (ecal, G_SIGNAL_MATCH_FUNC, 0, 0, NULL, client_cal_opened_cb, NULL); - e_cal_set_default_timezone (ecal, priv->zone, NULL); switch (source_type) { case E_CAL_SOURCE_TYPE_EVENT : @@ -2484,7 +2483,6 @@ default_client_cal_opened_cb (ECal *ecal, ECalendarStatus status, GnomeCalendar g_signal_handlers_disconnect_matched (ecal, G_SIGNAL_MATCH_FUNC, 0, 0, NULL, default_client_cal_opened_cb, NULL); - e_cal_set_default_timezone (ecal, priv->zone, NULL); switch (source_type) { case E_CAL_SOURCE_TYPE_EVENT: @@ -2511,9 +2509,13 @@ open_ecal (GnomeCalendar *gcal, ECal *cal, gboolean only_if_exists, open_func of { GnomeCalendarPrivate *priv; char *msg; + icaltimezone *zone; priv = gcal->priv; + zone = calendar_config_get_icaltimezone (); + e_cal_set_default_timezone (cal, zone, NULL); + msg = g_strdup_printf (_("Opening %s"), e_cal_get_uri (cal)); switch (e_cal_get_source_type (cal)) { case E_CAL_SOURCE_TYPE_EVENT : @@ -2882,6 +2884,7 @@ gnome_calendar_set_default_source (GnomeCalendar *gcal, ECalSourceType source_ty if (!priv->default_client[source_type]) return FALSE; } + open_ecal (gcal, priv->default_client[source_type], FALSE, default_client_cal_opened_cb); |