summaryrefslogtreecommitdiff
path: root/gtk/gtkglobals.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-04-01 11:30:53 +0000
committerGuy Harris <guy@alum.mit.edu>2000-04-01 11:30:53 +0000
commit5549f62efd72450189dad088a7206ed4b6a1bfb6 (patch)
treeac10eb58af1e11a0ef59b3ade4e015bf2462734c /gtk/gtkglobals.h
parent4173af0077958ed2559a7cfff39a5c39c1c3f1a9 (diff)
downloadwireshark-5549f62efd72450189dad088a7206ed4b6a1bfb6.tar.gz
There's no need to catch the "delete_event" signal on "Follow TCP
Stream" windows - the window should always be deleted in that situation, so there's no need for a signal handler that might return TRUE (meaning "don't delete the window"), and the "destroy" handler gets called when the window actually gets destroyed, so there's no need to do any cleanup in the "delete_event" handler. Catch the "delete_event" signal on the main window in a routine with the right signature, and that returns FALSE so that the window actually gets deleted. Call "close_cap_file()" in the callback for the "File:Quit" menu item (which is also called by the "delete_event" handler for the main window), rather than calling it after "gtk_main()" returns - "close_cap_file()" manipulates stuff in the main window, and if we do so after "gtk_main()" returns, it appears that the main window may have disappeared (if we are exiting because the user deleted the main window), in which case we can get crashes or other errors when "close_cap_file()" tries to manipulate stuff in the main window. There's no need to catch the "destroy" signal on the main window - we do some of the cleanup in the handler for "delete_event" (we have to, for reasons described above), and we do the rest of it after the main routine returns. svn path=/trunk/; revision=1773
Diffstat (limited to 'gtk/gtkglobals.h')
0 files changed, 0 insertions, 0 deletions