aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/summary_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-04-01 09:16:49 +0000
committerGuy Harris <guy@alum.mit.edu>2000-04-01 09:16:49 +0000
commit239109b3e9df99f1ba517b3dc94a6b53fe80826c (patch)
treea25a2b20f38ba96c5facb86f7f33f64c210d5114 /gtk/summary_dlg.c
parent26736850671e10e9dede404b97e24fceeaf300ee (diff)
No work need be done when a summary dialog box is destroyed, or when the
window manager tries to delete it, so no callback is needed for the "destroy" or "delete_event" signals (grabs are, at least in GTK+ 1.2.7, removed when a widget is destroyed, and there's no need for the destroy callback to destroy the widget itself; the delete event handler *could*, for example, pop up a dialog box saying "Do you really want to close this?", and allow the user to back out of the operation, but there's no unsaved work that would be lost by closing the window, so there's no point in having a delete event handler that does that). svn path=/trunk/; revision=1771
Diffstat (limited to 'gtk/summary_dlg.c')
-rw-r--r--gtk/summary_dlg.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/gtk/summary_dlg.c b/gtk/summary_dlg.c
index b538bfbbd6..687a9a1787 100644
--- a/gtk/summary_dlg.c
+++ b/gtk/summary_dlg.c
@@ -1,7 +1,7 @@
/* summary_dlg.c
* Routines for capture file summary window
*
- * $Id: summary_dlg.c,v 1.1 1999/12/10 04:21:04 gram Exp $
+ * $Id: summary_dlg.c,v 1.2 2000/04/01 09:16:49 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -80,11 +80,6 @@ summary_open_cb(GtkWidget *w, gpointer d)
sum_open_w = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(sum_open_w), "Ethereal: Summary");
- gtk_signal_connect( GTK_OBJECT(sum_open_w), "delete_event",
- GTK_SIGNAL_FUNC(summary_destroy_cb), NULL);
- gtk_signal_connect( GTK_OBJECT(sum_open_w), "destroy",
- GTK_SIGNAL_FUNC(summary_destroy_cb), NULL);
-
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 3);
gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
@@ -207,10 +202,3 @@ summary_open_cb(GtkWidget *w, gpointer d)
gtk_window_set_position(GTK_WINDOW(sum_open_w), GTK_WIN_POS_MOUSE);
gtk_widget_show(sum_open_w);
}
-
-void
-summary_destroy_cb(GtkWidget *win, gpointer data)
-{
- gtk_grab_remove(GTK_WIDGET(win));
- gtk_widget_destroy(GTK_WIDGET(win));
-}