aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/endpoint_talkers_udpip.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-08-30 00:53:15 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-08-30 00:53:15 +0000
commit1b81e773a7b2731e07150cd590c2ff49b7139658 (patch)
treefce9d2a244116a0cc0742def96d6dfb9e7d0dade /gtk/endpoint_talkers_udpip.c
parent7789678033ac361a155060097a3eb03743f77b1a (diff)
step two in endpoint talkers cleanup
move the windows destroy function to the common helpers file svn path=/trunk/; revision=8318
Diffstat (limited to 'gtk/endpoint_talkers_udpip.c')
-rw-r--r--gtk/endpoint_talkers_udpip.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/gtk/endpoint_talkers_udpip.c b/gtk/endpoint_talkers_udpip.c
index 88b4645bba..291f3e98e3 100644
--- a/gtk/endpoint_talkers_udpip.c
+++ b/gtk/endpoint_talkers_udpip.c
@@ -1,7 +1,7 @@
/* endpoint_talkers_udpip.c
* endpoint_talkers_udpip 2003 Ronnie Sahlberg
*
- * $Id: endpoint_talkers_udpip.c,v 1.9 2003/08/30 00:47:43 sahlberg Exp $
+ * $Id: endpoint_talkers_udpip.c,v 1.10 2003/08/30 00:53:15 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -46,20 +46,6 @@
#include "packet-udp.h"
-void protect_thread_critical_region(void);
-void unprotect_thread_critical_region(void);
-static void
-win_destroy_cb(GtkWindow *win _U_, gpointer data)
-{
- endpoints_table *talkers=(endpoints_table *)data;
-
- protect_thread_critical_region();
- remove_tap_listener(talkers);
- unprotect_thread_critical_region();
-
- reset_ett_table_data(talkers);
- g_free(talkers);
-}
static char *
udpip_port_to_str(guint32 port)
@@ -145,7 +131,7 @@ gtk_udpip_talkers_init(char *optarg)
snprintf(title, 255, "UDP Talkers: %s", cfile.filename);
gtk_window_set_title(GTK_WINDOW(talkers->win), title);
- SIGNAL_CONNECT(talkers->win, "destroy", win_destroy_cb, talkers);
+ SIGNAL_CONNECT(talkers->win, "destroy", ett_win_destroy_cb, talkers);
vbox=gtk_vbox_new(FALSE, 0);
gtk_container_add(GTK_CONTAINER(talkers->win), vbox);