aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog9
-rw-r--r--calendar/gui/e-day-view.c2
-rw-r--r--calendar/gui/e-week-view.c2
3 files changed, 13 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 07413363f0..7f2629cb71 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,12 @@
+2003-06-26 Bolian Yin <bolian.yin@sun.com>
+
+ Fixes #45276
+
+ * gui/e-day-view.c (e_day_view_on_text_item_event): set focus to dayview
+ when editing is canceled.
+ * gui/e-week-view.c (e_week_view_on_text_item_event): set focus to weekview
+ when editing is canceled
+
2003-06-25 Rodrigo Moya <rodrigo@ximian.com>
Fixes #44723
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index a442c8b2b8..fcc24dc3d0 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -6392,6 +6392,8 @@ e_day_view_on_text_item_event (GnomeCanvasItem *item,
} else if (event->key.keyval == GDK_Escape) {
cancel_editing (day_view);
gtk_signal_emit_stop_by_name (GTK_OBJECT (item), "event");
+ /* focus should go to day view when stop editing */
+ gtk_widget_grab_focus (GTK_WIDGET (day_view));
return TRUE;
}
break;
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 8a459d506e..aae7eb8a34 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -3108,6 +3108,8 @@ e_week_view_on_text_item_event (GnomeCanvasItem *item,
} else if (gdkevent->key.keyval == GDK_Escape) {
cancel_editing (week_view);
gtk_signal_emit_stop_by_name (GTK_OBJECT (item), "event");
+ /* focus should go to week view when stop editing */
+ gtk_widget_grab_focus (GTK_WIDGET (week_view));
return TRUE;
}
break;