diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-08-30 00:53:15 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-08-30 00:53:15 +0000 |
commit | 1b81e773a7b2731e07150cd590c2ff49b7139658 (patch) | |
tree | fce9d2a244116a0cc0742def96d6dfb9e7d0dade /gtk/endpoint_talkers_eth.c | |
parent | 7789678033ac361a155060097a3eb03743f77b1a (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_eth.c')
-rw-r--r-- | gtk/endpoint_talkers_eth.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/gtk/endpoint_talkers_eth.c b/gtk/endpoint_talkers_eth.c index 0d30d04e9a..ec83e8e601 100644 --- a/gtk/endpoint_talkers_eth.c +++ b/gtk/endpoint_talkers_eth.c @@ -1,7 +1,7 @@ /* endpoint_talkers_eth.c * endpoint_talkers_eth 2003 Ronnie Sahlberg * - * $Id: endpoint_talkers_eth.c,v 1.7 2003/08/30 00:47:42 sahlberg Exp $ + * $Id: endpoint_talkers_eth.c,v 1.8 2003/08/30 00:53:14 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -46,21 +46,6 @@ #include "packet-eth.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 void eth_talkers_reset(void *pit) { @@ -127,7 +112,7 @@ gtk_eth_talkers_init(char *optarg) snprintf(title, 255, "Ethernet 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); |