Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/gtk file_dlg.c 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: Tue, 30 Nov 1999 14:50:39 -0600 (CST)
guy         1999/11/30 14:50:30 CST

  Modified files:
    gtk                  file_dlg.c main.c 
  Log:
  Allow the user to save either all of the current capture, or only the
  packets that are currently being displayed from that capture.
  
  Centralize the code to control whether "File:Save" and "File:Save As"
  are enabled (and *always* have "File:Save As" enabled if you have a
  capture; "File:Save" is enabled only if you have a live capture you've
  not yet saved, although it does the same thing as "File:Save As").
  
  Have the "save_file" member of a "capture_file" structure represent
  *only* the file currently being *written* to by a capture, and, if there
  is no capture currently in progress, have it be NULL; the name of the
  file currently being *displayed" is in the "filename" member, and an
  "is_tempfile" member indicates whether it's a temporary file for a live
  capture or not.
  
  Have "close_cap_file()" delete the current capture file if it's a
  temporary capture file that hasn't been saved (in its entirety - saving
  selected frames doesn't count).  Do the same (if there *is* a current
  capture file) when exiting.
  
  The "Ready to load or capture" message is the only statusbar message in
  the "main" context; "close_cap_file()" should never pop it, it should
  only pop whatever message exists in the "file" context, and thus has no
  need to take, as an argument, the context for the message it should pop.
  
  Update the man page to reflect the new behavior of "File:Save" and
  "File:Save As", and to reflect recent changes to "Display:Match Selected".
  
  Revision  Changes    Path
  1.12      +72 -61    ethereal/gtk/file_dlg.c
  1.57      +10 -10    ethereal/gtk/main.c