Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/gtk main.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Sat, 1 Apr 2000 04:23:13 -0600 (CST)
guy         2000/04/01 04:23:09 CST

  Modified files:
    gtk                  main.c 
  Log:
  Exit from Ethereal by making the main loop exit, so that any quit
  routines we register get called.
  
  Register the "follow TCP stream" windows with "gtk_quit_add_destroy()",
  so that, when Ethereal exits, they all get destroyed; this means that
  their destroy callbacks get called, which means that they get to delete
  their temporary files, so that, if you exit Ethereal without manually
  closing the "follow TCP stream" windows, the temporary files don't get
  left around.
  
  Exit from Ethereal's "main()" function by calling "gtk_exit()", rather
  than "exit()", so that we do whatever cleanup GTK+ requires.  (We used
  to call "gtk_exit()" in the callback for the "File:Quit" menu item and
  the "delete" callback for the main window, but we now just call
  "gtk_main_quit()" so that we exit from the main loop.)
  
  Revision  Changes    Path
  1.110     +24 -9     ethereal/gtk/main.c