diff options
Diffstat (limited to 'gtk/h225_ras_srt.c')
-rw-r--r-- | gtk/h225_ras_srt.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gtk/h225_ras_srt.c b/gtk/h225_ras_srt.c index a7a8137bb9..f6b8e1ab5f 100644 --- a/gtk/h225_ras_srt.c +++ b/gtk/h225_ras_srt.c @@ -2,7 +2,7 @@ * h225 RAS Service Response Time statistics for ethereal * Copyright 2003 Lars Roland * - * $Id: h225_ras_srt.c,v 1.16 2004/04/12 08:53:02 ulfl Exp $ + * $Id: h225_ras_srt.c,v 1.17 2004/05/23 23:24:05 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -303,8 +303,7 @@ gtk_h225rassrt_init(char *optarg) h225rassrt_reset(hs); - hs->win=dlg_window_new(""); - SIGNAL_CONNECT(hs->win, "destroy", win_destroy_cb, hs); + hs->win=window_new(GTK_WINDOW_TOPLEVEL, "h225-ras-srt"); hs->vbox=gtk_vbox_new(FALSE, 3); gtk_container_set_border_width(GTK_CONTAINER(hs->vbox), 12); @@ -331,16 +330,16 @@ gtk_h225rassrt_init(char *optarg) gtk_box_pack_end(GTK_BOX(hs->vbox), bbox, FALSE, FALSE, 0); close_bt = OBJECT_GET_DATA(bbox, GTK_STOCK_CLOSE); - SIGNAL_CONNECT_OBJECT(close_bt, "clicked", gtk_widget_destroy, hs->win); - gtk_widget_grab_default(close_bt); + window_set_cancel_button(hs->win, close_bt, window_cancel_button_cb); - /* 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(hs->win, close_bt); + SIGNAL_CONNECT(hs->win, "delete_event", window_delete_event_cb, NULL); + SIGNAL_CONNECT(hs->win, "destroy", win_destroy_cb, hs); gtk_widget_show_all(hs->win); - redissect_packets(&cfile); + window_present(hs->win); + + /* XXX - shouldn't this be retap_packets? */ + redissect_packets(&cfile); } void |