From 1419bbb302e7b6cc6d7869ba3e6ababba5175efe Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 6 Mar 2013 08:46:11 -0500 Subject: cal_comp_event_new_with_current_time: Remove 'zone' parameter. Get the icaltimezone from the passed in ECalClient. --- calendar/gui/comp-util.c | 4 +++- calendar/gui/comp-util.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'calendar') diff --git a/calendar/gui/comp-util.c b/calendar/gui/comp-util.c index c0e6dbb74c..a271100167 100644 --- a/calendar/gui/comp-util.c +++ b/calendar/gui/comp-util.c @@ -364,7 +364,6 @@ cal_comp_event_new_with_defaults (ECalClient *client, ECalComponent * cal_comp_event_new_with_current_time (ECalClient *client, gboolean all_day, - icaltimezone *zone, gboolean use_default_reminder, gint default_reminder_interval, EDurationType default_reminder_units) @@ -372,12 +371,15 @@ cal_comp_event_new_with_current_time (ECalClient *client, ECalComponent *comp; struct icaltimetype itt; ECalComponentDateTime dt; + icaltimezone *zone; comp = cal_comp_event_new_with_defaults ( client, all_day, use_default_reminder, default_reminder_interval, default_reminder_units); g_return_val_if_fail (comp != NULL, NULL); + zone = e_cal_client_get_default_timezone (client); + if (all_day) { itt = icaltime_from_timet_with_zone (time (NULL), 1, zone); diff --git a/calendar/gui/comp-util.h b/calendar/gui/comp-util.h index 1c91a69d64..dcf5844c79 100644 --- a/calendar/gui/comp-util.h +++ b/calendar/gui/comp-util.h @@ -57,7 +57,6 @@ ECalComponent * cal_comp_event_new_with_defaults ECalComponent * cal_comp_event_new_with_current_time (ECalClient *client, gboolean all_day, - icaltimezone *zone, gboolean use_default_reminder, gint default_reminder_interval, EDurationType default_reminder_units); -- cgit v1.2.3