aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/schedule-page.c
diff options
context:
space:
mode:
authornobody <nobody@localhost>2003-09-26 23:53:23 +0800
committernobody <nobody@localhost>2003-09-26 23:53:23 +0800
commit911c3b9d4fe2f40bc34029ef798ed78fdf0fcb42 (patch)
treee3efa4958cf2cf6bfe50e2a15c729b9014efa5db /calendar/gui/dialogs/schedule-page.c
parent99c61843f0d1da7f9b3b73b99bab0e918ce99e5b (diff)
downloadgsoc2013-evolution-911c3b9d4fe2f40bc34029ef798ed78fdf0fcb42.tar
gsoc2013-evolution-911c3b9d4fe2f40bc34029ef798ed78fdf0fcb42.tar.gz
gsoc2013-evolution-911c3b9d4fe2f40bc34029ef798ed78fdf0fcb42.tar.bz2
gsoc2013-evolution-911c3b9d4fe2f40bc34029ef798ed78fdf0fcb42.tar.lz
gsoc2013-evolution-911c3b9d4fe2f40bc34029ef798ed78fdf0fcb42.tar.xz
gsoc2013-evolution-911c3b9d4fe2f40bc34029ef798ed78fdf0fcb42.tar.zst
gsoc2013-evolution-911c3b9d4fe2f40bc34029ef798ed78fdf0fcb42.zip
This commit was manufactured by cvs2svn to create tagnew-calendar-branch-merge-end
'new-calendar-branch-merge-end'. svn path=/tags/new-calendar-branch-merge-end/; revision=22718
Diffstat (limited to 'calendar/gui/dialogs/schedule-page.c')
-rw-r--r--calendar/gui/dialogs/schedule-page.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/calendar/gui/dialogs/schedule-page.c b/calendar/gui/dialogs/schedule-page.c
index 2163d51f1e..eb1813195c 100644
--- a/calendar/gui/dialogs/schedule-page.c
+++ b/calendar/gui/dialogs/schedule-page.c
@@ -208,7 +208,6 @@ update_time (SchedulePage *spage, CalComponentDateTime *start_date, CalComponent
SchedulePagePrivate *priv;
struct icaltimetype start_tt, end_tt;
icaltimezone *start_zone = NULL, *end_zone = NULL;
- CalClientGetStatus status;
gboolean all_day;
priv = spage->priv;
@@ -218,24 +217,22 @@ update_time (SchedulePage *spage, CalComponentDateTime *start_date, CalComponent
first. */
start_zone = icaltimezone_get_builtin_timezone_from_tzid (start_date->tzid);
if (!start_zone) {
- status = cal_client_get_timezone (COMP_EDITOR_PAGE (spage)->client,
- start_date->tzid,
- &start_zone);
- /* FIXME: Handle error better. */
- if (status != CAL_CLIENT_GET_SUCCESS)
+ if (!cal_client_get_timezone (COMP_EDITOR_PAGE (spage)->client,
+ start_date->tzid, &start_zone, NULL)) {
+ /* FIXME: Handle error better. */
g_warning ("Couldn't get timezone from server: %s",
start_date->tzid ? start_date->tzid : "");
+ }
}
end_zone = icaltimezone_get_builtin_timezone_from_tzid (end_date->tzid);
if (!end_zone) {
- status = cal_client_get_timezone (COMP_EDITOR_PAGE (spage)->client,
- end_date->tzid,
- &end_zone);
- /* FIXME: Handle error better. */
- if (status != CAL_CLIENT_GET_SUCCESS)
- g_warning ("Couldn't get timezone from server: %s",
- end_date->tzid ? end_date->tzid : "");
+ if (!cal_client_get_timezone (COMP_EDITOR_PAGE (spage)->client,
+ end_date->tzid, &end_zone, NULL)) {
+ /* FIXME: Handle error better. */
+ g_warning ("Couldn't get timezone from server: %s",
+ end_date->tzid ? end_date->tzid : "");
+ }
}
start_tt = *start_date->value;