[evolution] Use new e_util_generate_uid() instead of e_cal_component_gen_uid()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Use new e_util_generate_uid() instead of e_cal_component_gen_uid()
- Date: Thu, 18 May 2017 14:56:15 +0000 (UTC)
commit 82952788d1e684ce7515f8ac02d6fc96facb586f
Author: Milan Crha <mcrha redhat com>
Date: Thu May 18 16:53:23 2017 +0200
Use new e_util_generate_uid() instead of e_cal_component_gen_uid()
src/calendar/gui/comp-util.c | 2 +-
src/calendar/gui/e-cal-model.c | 2 +-
src/calendar/gui/e-cal-ops.c | 2 +-
src/calendar/gui/e-calendar-view.c | 2 +-
src/modules/calendar/e-cal-shell-view-actions.c | 2 +-
src/plugins/mail-to-task/mail-to-task.c | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/calendar/gui/comp-util.c b/src/calendar/gui/comp-util.c
index 437be49..dfbfd5d 100644
--- a/src/calendar/gui/comp-util.c
+++ b/src/calendar/gui/comp-util.c
@@ -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 */
diff --git a/src/calendar/gui/e-cal-model.c b/src/calendar/gui/e-cal-model.c
index f9accea..77fb282 100644
--- a/src/calendar/gui/e-cal-model.c
+++ b/src/calendar/gui/e-cal-model.c
@@ -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);
diff --git a/src/calendar/gui/e-cal-ops.c b/src/calendar/gui/e-cal-ops.c
index f6514be..d0d5a0f 100644
--- a/src/calendar/gui/e-cal-ops.c
+++ b/src/calendar/gui/e-cal-ops.c
@@ -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);
diff --git a/src/calendar/gui/e-calendar-view.c b/src/calendar/gui/e-calendar-view.c
index d845a4b..8b92a7c 100644
--- a/src/calendar/gui/e-calendar-view.c
+++ b/src/calendar/gui/e-calendar-view.c
@@ -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));
diff --git a/src/modules/calendar/e-cal-shell-view-actions.c b/src/modules/calendar/e-cal-shell-view-actions.c
index 3c1db74..e92e9cd 100644
--- a/src/modules/calendar/e-cal-shell-view-actions.c
+++ b/src/modules/calendar/e-cal-shell-view-actions.c
@@ -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);
diff --git a/src/plugins/mail-to-task/mail-to-task.c b/src/plugins/mail-to-task/mail-to-task.c
index de07d05..20aa3c3 100644
--- a/src/plugins/mail-to-task/mail-to-task.c
+++ b/src/plugins/mail-to-task/mail-to-task.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]