Commit 1419bbb3 authored by Matthew Barnes's avatar Matthew Barnes
Browse files

cal_comp_event_new_with_current_time: Remove 'zone' parameter.

Get the icaltimezone from the passed in ECalClient.
parent 06eeeb23
......@@ -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);
......
......@@ -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);
......
......@@ -75,8 +75,6 @@ cal_shell_backend_new_event (ECalClient *cal_client,
editor = event_editor_new (cal_client, shell, flags);
comp = cal_comp_event_new_with_current_time (
cal_client, all_day,
e_shell_settings_get_pointer (
shell_settings, "cal-timezone"),
e_shell_settings_get_boolean (
shell_settings, "cal-use-default-reminder"),
e_shell_settings_get_int (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment