aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-text.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2007-11-05 20:11:08 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-11-05 20:11:08 +0800
commitf1f54e0cdd88678ab083ee129ec37fe9509490e5 (patch)
treed9fca89aad7dee9125762183f7bd4731a1c89299 /widgets/table/e-cell-text.c
parent3724efa492414cbe3d372cd50b733fea599d6510 (diff)
downloadgsoc2013-evolution-f1f54e0cdd88678ab083ee129ec37fe9509490e5.tar.gz
gsoc2013-evolution-f1f54e0cdd88678ab083ee129ec37fe9509490e5.tar.zst
gsoc2013-evolution-f1f54e0cdd88678ab083ee129ec37fe9509490e5.zip
** Fix for bug #255051
2007-11-05 Milan Crha <mcrha@redhat.com> ** Fix for bug #255051 * e-cell-combo.c: (e_cell_combo_key_press): * e-cell-text.c: (ect_event): Pass Escape event to parent, if there is no action to do with it. * e-table-click-to-add.c: (etcta_event): Drop changes when pressed Escape and go back to default line with text "Click to add...". svn path=/trunk/; revision=34507
Diffstat (limited to 'widgets/table/e-cell-text.c')
-rw-r--r--widgets/table/e-cell-text.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index f89e34ec0b..9c548b620f 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -994,8 +994,9 @@ ect_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col,
}
if (event->key.keyval == GDK_Escape){
+ /* if not changed, then pass this even to parent */
+ return_val = text_view->edit != NULL && text_view->edit->text && text_view->edit->old_text && 0 != strcmp (text_view->edit->text, text_view->edit->old_text);
ect_cancel_edit (text_view);
- return_val = TRUE;
break;
}