aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBolian Yin <bolian.yin@sun.com>2003-06-30 03:10:29 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-06-30 03:10:29 +0800
commit08d2a61511b5cfc253c633fe56bc8b2476b4e861 (patch)
tree695f750f33578cc8ce663cc7b1d8b3124011e7ea
parent5a8e20476b93515b8e69f7e1c8f659ab3dc55a8f (diff)
downloadgsoc2013-evolution-08d2a61511b5cfc253c633fe56bc8b2476b4e861.tar.gz
gsoc2013-evolution-08d2a61511b5cfc253c633fe56bc8b2476b4e861.tar.zst
gsoc2013-evolution-08d2a61511b5cfc253c633fe56bc8b2476b4e861.zip
Fixes #45276
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 svn path=/trunk/; revision=21682
-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;