Commit 82952788 authored by Milan Crha's avatar Milan Crha
Browse files

Use new e_util_generate_uid() instead of e_cal_component_gen_uid()

parent a2dfd08b
......@@ -1194,7 +1194,7 @@ cal_comp_transfer_item_to_sync (ECalClient *src_client,
if (do_copy) {
/* Change the UID to avoid problems with duplicated UID */
new_uid = e_cal_component_gen_uid ();
new_uid = e_util_generate_uid ();
if (icalcomponent_isa (icalcomp) == ICAL_VCALENDAR_COMPONENT) {
/* in case of a vCalendar, the component might have detached instances,
* thus change the UID on all of the subcomponents of it */
......
......@@ -3788,7 +3788,7 @@ e_cal_model_create_component_with_defaults_sync (ECalModel *model,
if (!icalcomponent_get_uid (icalcomp)) {
gchar *uid;
uid = e_cal_component_gen_uid ();
uid = e_util_generate_uid ();
icalcomponent_set_uid (icalcomp, uid);
g_free (uid);
......
......@@ -548,7 +548,7 @@ cal_ops_create_comp_with_new_uid_sync (ECalClient *cal_client,
clone = icalcomponent_new_clone (icalcomp);
uid = e_cal_component_gen_uid ();
uid = e_util_generate_uid ();
icalcomponent_set_uid (clone, uid);
g_free (uid);
......
......@@ -722,7 +722,7 @@ e_calendar_view_add_event_sync (ECalModel *model,
icalcomponent_set_dtend (icalcomp, itime);
/* The new uid stuff can go away once we actually set it in the backend */
uid = e_cal_component_gen_uid ();
uid = e_util_generate_uid ();
comp = e_cal_component_new ();
e_cal_component_set_icalcomponent (
comp, icalcomponent_new_clone (icalcomp));
......
......@@ -894,7 +894,7 @@ action_event_occurrence_movable_cb (GtkAction *action,
e_cal_component_set_icalcomponent (
exception_component, icalcomponent_new_clone (icalcomp));
uid = e_cal_component_gen_uid ();
uid = e_util_generate_uid ();
e_cal_component_set_uid (exception_component, uid);
g_free (uid);
......
......@@ -750,7 +750,7 @@ do_manage_comp_idle (struct _manage_comp *mc)
}
} else if (chosen == GTK_RESPONSE_NO) {
/* user wants to create a new event, thus generate a new UID */
gchar *new_uid = e_cal_component_gen_uid ();
gchar *new_uid = e_util_generate_uid ();
edit_comp = mc->comp;
e_cal_component_set_uid (edit_comp, new_uid);
e_cal_component_set_recurid (edit_comp, NULL);
......
Supports Markdown
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