diff options
author | RichardHitt <rbh00@netcom.com> | 2013-03-17 15:11:23 -0700 |
---|---|---|
committer | RichardHitt <rbh00@netcom.com> | 2013-03-17 15:11:23 -0700 |
commit | ecdcc99280d29994791b8bc3273bf03a670d0b7b (patch) | |
tree | 947e2145e5cf149f0ccfc4d86d77dd2f2b278943 /src/fe-gtk/ascii.c | |
parent | e8a78b9aa1398deb69d20d599be2a630f721cafa (diff) |
ESC key will destroy the windows mentioned at issue 211.
This change implements generic routine gtkutil_destroy_on_esc () and adds invocations of it in the requisite window-handling places.
Diffstat (limited to 'src/fe-gtk/ascii.c')
-rw-r--r-- | src/fe-gtk/ascii.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-gtk/ascii.c b/src/fe-gtk/ascii.c index 06621cd7..ab6ac0ee 100644 --- a/src/fe-gtk/ascii.c +++ b/src/fe-gtk/ascii.c @@ -90,7 +90,6 @@ static const unsigned char table[]= 0xd1,0x89,0xd1,0x8a,0xd1,0x8b,0xd1,0x8c,0xd1,0x8d,0xd1,0x8e,0xd1,0x8f,0 }; - static gboolean ascii_enter (GtkWidget * wid, GdkEventCrossing *event, GtkWidget *label) { @@ -133,6 +132,7 @@ ascii_open (void) win = mg_create_generic_tab ("charmap", _("Character Chart"), TRUE, TRUE, NULL, NULL, 0, 0, &vbox, NULL); gtk_container_set_border_width (GTK_CONTAINER (win), 5); + gtkutil_destroy_on_esc (win); label = gtk_label_new (NULL); |