summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index a9c21bebc3..8aed5b169c 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -910,8 +910,9 @@ gtk_entry_init (GtkEntry *entry)
entry->dnd_position = -1;
entry->width_chars = -1;
entry->is_cell_renderer = FALSE;
+ entry->editing_canceled = FALSE;
entry->has_frame = TRUE;
-
+
gtk_drag_dest_set (GTK_WIDGET (entry),
GTK_DEST_DEFAULT_HIGHLIGHT,
target_table, G_N_ELEMENTS (target_table),
@@ -1838,6 +1839,7 @@ gtk_cell_editable_key_press_event (GtkEntry *entry,
{
if (key_event->keyval == GDK_Escape)
{
+ entry->editing_canceled = TRUE;
gtk_cell_editable_editing_done (GTK_CELL_EDITABLE (entry));
gtk_cell_editable_remove_widget (GTK_CELL_EDITABLE (entry));