diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2001-06-15 08:07:32 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2001-06-15 08:07:32 +0800 |
commit | 8ab688397f3142538b9b464b0024896ce8453adc (patch) | |
tree | e9335e75e6660c0abb448fc7e2fa9290df95d9b6 | |
parent | 8d2ba063ec7e6c5b38fbfcf1a2f5815287804f33 (diff) | |
download | gsoc2013-evolution-8ab688397f3142538b9b464b0024896ce8453adc.tar.gz gsoc2013-evolution-8ab688397f3142538b9b464b0024896ce8453adc.tar.zst gsoc2013-evolution-8ab688397f3142538b9b464b0024896ce8453adc.zip |
generate a new UID when pasting
2001-06-15 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-day-view.c (selection_received): generate a new UID
when pasting
* gui/e-week-view.c (selection_received): ditto
svn path=/trunk/; revision=10246
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/e-day-view.c | 5 | ||||
-rw-r--r-- | calendar/gui/e-week-view.c | 5 |
3 files changed, 17 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 4c130bc3a5..07e0e6cfe0 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,12 @@ 2001-06-15 Rodrigo Moya <rodrigo@ximian.com> + * gui/e-day-view.c (selection_received): generate a new UID + when pasting + + * gui/e-week-view.c (selection_received): ditto + +2001-06-15 Rodrigo Moya <rodrigo@ximian.com> + * gui/e-day-view.c (selection_received): finished implementation of Paste stuff diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index ae9b499eef..491b3327c9 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -6529,6 +6529,7 @@ selection_received (GtkWidget *invisible, time_t dtstart, dtend; struct icaltimetype itime; CalComponent *comp; + char *uid; g_return_if_fail (E_IS_DAY_VIEW (day_view)); @@ -6550,6 +6551,10 @@ selection_received (GtkWidget *invisible, comp = cal_component_new (); cal_component_set_icalcomponent (comp, icalcomp); + uid = cal_component_gen_uid (); + cal_component_set_uid (comp, (const char *) uid); + free (uid); + cal_client_update_object (day_view->client, comp); gtk_object_unref (GTK_OBJECT (comp)); diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index 7d2f1611e7..aa850a9ac9 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -3480,6 +3480,7 @@ selection_received (GtkWidget *invisible, time_t dtstart, dtend; struct icaltimetype itime; CalComponent *comp; + char *uid; g_return_if_fail (E_IS_WEEK_VIEW (week_view)); @@ -3501,6 +3502,10 @@ selection_received (GtkWidget *invisible, comp = cal_component_new (); cal_component_set_icalcomponent (comp, icalcomp); + uid = cal_component_gen_uid (); + cal_component_set_uid (comp, (const char *) uid); + free (uid); + cal_client_update_object (week_view->client, comp); gtk_object_unref (GTK_OBJECT (comp)); |