aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2007-09-06 12:46:29 +0000
committerBill Meier <wmeier@newsguy.com>2007-09-06 12:46:29 +0000
commitdf712c85749bbb625e494f961ee96c9d3ba0c909 (patch)
tree87f8cd1f2c26f032c675234065b36fc894aeebea /gtk
parent54a21f0df59a2e7a91927d8e23e3bfe57006af10 (diff)
Enable esc key for SCTP Associations window.
svn path=/trunk/; revision=22804
Diffstat (limited to 'gtk')
-rw-r--r--gtk/sctp_stat_dlg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/sctp_stat_dlg.c b/gtk/sctp_stat_dlg.c
index b93c6f3472..8526ba24f5 100644
--- a/gtk/sctp_stat_dlg.c
+++ b/gtk/sctp_stat_dlg.c
@@ -381,7 +381,7 @@ sctp_stat_on_filter (GtkButton *button _U_, gpointer user_data _U_)
static void
-sctp_stat_on_close (GtkButton *button _U_, gpointer user_data _U_)
+sctp_stat_on_close (GtkWidget *button _U_, gpointer user_data _U_)
{
gtk_grab_remove(sctp_stat_dlg);
gtk_widget_destroy(sctp_stat_dlg);
@@ -592,6 +592,9 @@ gtk_sctpstat_dlg(void)
bt_close = BUTTON_NEW_FROM_STOCK(GTK_STOCK_CLOSE);
gtk_container_add (GTK_CONTAINER (hbuttonbox2), bt_close);
+ GTK_WIDGET_SET_FLAGS(bt_close, GTK_CAN_DEFAULT);
+ window_set_cancel_button( sctp_stat_dlg_w, bt_close, sctp_stat_on_close);
+ gtk_widget_grab_focus(bt_close);
gtk_widget_show (bt_close);
SIGNAL_CONNECT(sctp_stat_dlg_w, "destroy", dlg_destroy, NULL);
@@ -600,7 +603,6 @@ gtk_sctpstat_dlg(void)
SIGNAL_CONNECT(bt_filter, "clicked", sctp_stat_on_filter, NULL);
SIGNAL_CONNECT(bt_afilter, "clicked", sctp_stat_on_apply_filter, NULL);
SIGNAL_CONNECT(bt_analyse, "clicked", sctp_stat_on_analyse, NULL);
- SIGNAL_CONNECT(bt_close, "clicked", sctp_stat_on_close, NULL);
sctp_stat_dlg = sctp_stat_dlg_w;
cf_retap_packets(&cfile, FALSE);