aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorSuman Manjunath <msuman@src.gnome.org>2008-01-14 15:44:26 +0800
committerSuman Manjunath <msuman@src.gnome.org>2008-01-14 15:44:26 +0800
commit7df0460e0441988086f2d1575e3f3ed4da517bc0 (patch)
tree371668d73f0e322bb36b6d3b65befe586c900497 /calendar/gui
parentddcfe32c3d751c170c3e42d7dc10f3e344e186ae (diff)
downloadgsoc2013-evolution-7df0460e0441988086f2d1575e3f3ed4da517bc0.tar.gz
gsoc2013-evolution-7df0460e0441988086f2d1575e3f3ed4da517bc0.tar.zst
gsoc2013-evolution-7df0460e0441988086f2d1575e3f3ed4da517bc0.zip
Patch from Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> Fix for bug #264404 (Pass down Enter if in preedit-mode)
svn path=/trunk/; revision=34808
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-day-view.c3
-rw-r--r--calendar/gui/e-week-view.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index cb5743e3b3..9e90ed1ea1 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -7127,8 +7127,7 @@ e_day_view_on_text_item_event (GnomeCanvasItem *item,
switch (event->type) {
case GDK_KEY_PRESS:
tooltip_destroy (day_view, item);
- if (event && event->key.keyval == GDK_Return) {
- day_view->resize_event_num = -1;
+ if (!E_TEXT (item)->preedit_len && event && event->key.keyval == GDK_Return) {
day_view->resize_event_num = -1;
/* We set the keyboard focus to the EDayView, so the
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index c7004cbbd1..b6254750a9 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -3061,7 +3061,7 @@ e_week_view_on_text_item_event (GnomeCanvasItem *item,
switch (gdkevent->type) {
case GDK_KEY_PRESS:
tooltip_destroy (week_view, item);
- if (gdkevent && gdkevent->key.keyval == GDK_Return) {
+ if (!E_TEXT (item)->preedit_len && gdkevent && gdkevent->key.keyval == GDK_Return) {
/* We set the keyboard focus to the EDayView, so the
EText item loses it and stops the edit. */
gtk_widget_grab_focus (GTK_WIDGET (week_view));