diff options
author | Milan Crha <mcrha@redhat.com> | 2007-11-05 20:11:08 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2007-11-05 20:11:08 +0800 |
commit | f1f54e0cdd88678ab083ee129ec37fe9509490e5 (patch) | |
tree | d9fca89aad7dee9125762183f7bd4731a1c89299 /widgets/table/e-table-click-to-add.c | |
parent | 3724efa492414cbe3d372cd50b733fea599d6510 (diff) | |
download | gsoc2013-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-table-click-to-add.c')
-rw-r--r-- | widgets/table/e-table-click-to-add.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/table/e-table-click-to-add.c b/widgets/table/e-table-click-to-add.c index 718b3e3e3e..572d79acc1 100644 --- a/widgets/table/e-table-click-to-add.c +++ b/widgets/table/e-table-click-to-add.c @@ -433,6 +433,16 @@ etcta_event (GnomeCanvasItem *item, GdkEvent *e) break; default: return FALSE; + case GDK_Escape: + if (etcta->row) { + e_table_item_leave_edit (E_TABLE_ITEM (etcta->row)); + etcta_drop_one (etcta); + gtk_object_destroy(GTK_OBJECT (etcta->row)); + etcta->row = NULL; + create_rect_and_text (etcta); + e_canvas_item_move_absolute (etcta->text, 3, 3); + } + break; } break; |