diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-04-12 18:01:27 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-04-12 18:01:27 +0000 |
commit | 6bcd3f6c8480e7c21b91b6c35b07268eac45da5a (patch) | |
tree | aeaf4b5ad9450e6a1a524a4818e0295c13873e4b /gtk/rtp_stream_dlg.c | |
parent | d4f93b305f58513685a7db47b68782b4687a2f55 (diff) |
ESC key presses Close button
svn path=/trunk/; revision=10587
Diffstat (limited to 'gtk/rtp_stream_dlg.c')
-rw-r--r-- | gtk/rtp_stream_dlg.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/rtp_stream_dlg.c b/gtk/rtp_stream_dlg.c index cb84bcc7cc..82815b844b 100644 --- a/gtk/rtp_stream_dlg.c +++ b/gtk/rtp_stream_dlg.c @@ -1,7 +1,7 @@ /* rtp_stream_dlg.c * RTP streams summary addition for ethereal * - * $Id: rtp_stream_dlg.c,v 1.19 2004/03/14 14:04:39 deniel Exp $ + * $Id: rtp_stream_dlg.c,v 1.20 2004/04/12 18:01:27 ulfl Exp $ * * Copyright 2003, Alcatel Business Systems * By Lars Ruoff <lars.ruoff@gmx.net> @@ -743,7 +743,12 @@ static void rtpstream_dlg_create (void) bt_close = BUTTON_NEW_FROM_STOCK(GTK_STOCK_CLOSE); gtk_widget_show (bt_close); gtk_container_add (GTK_CONTAINER (hbuttonbox2), bt_close); - + + /* Catch the "key_press_event" signal in the window, so that we can + catch the ESC key being pressed and act as if the "Close" button had + been selected. */ + dlg_set_cancel(rtpstream_dlg_w, bt_close); + SIGNAL_CONNECT(rtpstream_dlg_w, "destroy", rtpstream_on_destroy, NULL); SIGNAL_CONNECT(clist, "select_row", rtpstream_on_select_row, NULL); SIGNAL_CONNECT(bt_unselect, "clicked", rtpstream_on_unselect, NULL); |