diff options
author | Bolian Yin <bolian.yin@sun.com> | 2003-06-30 03:10:29 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-06-30 03:10:29 +0800 |
commit | 08d2a61511b5cfc253c633fe56bc8b2476b4e861 (patch) | |
tree | 695f750f33578cc8ce663cc7b1d8b3124011e7ea /calendar/gui | |
parent | 5a8e20476b93515b8e69f7e1c8f659ab3dc55a8f (diff) | |
download | gsoc2013-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
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-day-view.c | 2 | ||||
-rw-r--r-- | calendar/gui/e-week-view.c | 2 |
2 files changed, 4 insertions, 0 deletions
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; |