aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-day-view.c3
-rw-r--r--calendar/gui/e-week-view.c5
3 files changed, 14 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index c1e1047863..e2b09f31f6 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2005-01-10 Rodrigo Moya <rodrigo@novell.com>
+
+ * gui/e-day-view.c (e_day_view_on_editing_stopped): remove the
+ temporary object from the view when stopping editing.
+
+ * gui/e-week-view.c (e_week_view_on_editing_stopped): ditto.
+
2005-01-10 Harish Krishnaswamy <kharish@novell.com>
* gui/dialogs/cal-attachment-bar.c:
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index fb5de111ee..d4a0021731 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -6018,6 +6018,9 @@ e_day_view_on_editing_stopped (EDayView *day_view,
g_message (G_STRLOC ": Could not create the object!");
else
g_signal_emit_by_name (day_view, "user_created");
+
+ /* we remove the object since we either got the update from the server or failed */
+ e_day_view_remove_event_cb (day_view, day, event_num, NULL);
} else {
CalObjModType mod = CALOBJ_MOD_ALL;
GtkWindow *toplevel;
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 5ddc16ff28..893254252a 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -3302,7 +3302,10 @@ e_week_view_on_editing_stopped (EWeekView *week_view,
if (!e_cal_create_object (client, icalcomp, NULL, NULL))
g_message (G_STRLOC ": Could not create the object!");
else
- g_signal_emit_by_name (week_view, "user_created");
+ g_signal_emit_by_name (week_view, "user_created");
+
+ /* we remove the object since we either got the update from the server or failed */
+ e_week_view_remove_event_cb (week_view, event_num, NULL);
} else {
CalObjModType mod = CALOBJ_MOD_ALL;
GtkWindow *toplevel;