aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/gsm_map_summary.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-05-23 23:24:07 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-05-23 23:24:07 +0000
commitcc6836803788de14432c597fcda0ad3154b421e4 (patch)
treecd34c8b0e8333865247f8af8e7405c950d565350 /gtk/gsm_map_summary.c
parent9332549e99c7bee165fa47b3332e683d39cbcdad (diff)
use new functions in window API (ui_util.h),
use window_new instead of dlg_window_new for the statistics windows (as these are no dialog windows) do some code cleanup svn path=/trunk/; revision=10979
Diffstat (limited to 'gtk/gsm_map_summary.c')
-rw-r--r--gtk/gsm_map_summary.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/gtk/gsm_map_summary.c b/gtk/gsm_map_summary.c
index 486844dc50..9071c7fdf9 100644
--- a/gtk/gsm_map_summary.c
+++ b/gtk/gsm_map_summary.c
@@ -6,7 +6,7 @@
*
* Modified from summary_dlg.c
*
- * $Id: gsm_map_summary.c,v 1.2 2004/05/22 19:56:18 ulfl Exp $
+ * $Id: gsm_map_summary.c,v 1.3 2004/05/23 23:24:05 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -85,7 +85,7 @@ gsm_map_stat_gtk_sum_cb(GtkWidget *w _U_, gpointer d _U_)
/* initial compututations */
seconds = summary.stop_time - summary.start_time;
- sum_open_w = dlg_window_new("GSM MAP Statistics: Summary");
+ sum_open_w = window_new(GTK_WINDOW_TOPLEVEL, "GSM MAP Statistics: Summary");
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 3);
@@ -249,15 +249,12 @@ gsm_map_stat_gtk_sum_cb(GtkWidget *w _U_, gpointer d _U_)
gtk_widget_show(bbox);
close_bt = OBJECT_GET_DATA(bbox, GTK_STOCK_CLOSE);
- SIGNAL_CONNECT_OBJECT(close_bt, "clicked", gtk_widget_destroy, sum_open_w);
- gtk_widget_grab_default(close_bt);
+ window_set_cancel_button(sum_open_w, 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(sum_open_w, close_bt);
+ SIGNAL_CONNECT(sum_open_w, "delete_event", window_delete_event_cb, NULL);
gtk_widget_show(sum_open_w);
+ window_present(sum_open_w);
}