Change the "user_saved" member of a capture_file structure to
authorGuy Harris <guy@alum.mit.edu>
Sun, 20 May 2012 08:56:06 +0000 (08:56 -0000)
committerGuy Harris <guy@alum.mit.edu>
Sun, 20 May 2012 08:56:06 +0000 (08:56 -0000)
commit4a9b825c49a228b6456fbf24731aadcdd47d2c4e
tree55a654e285d7298213738a4b58db5e65a09e59d8
parentacc2a3706bf20e518f63492f424d0276d70e7e32
Change the "user_saved" member of a capture_file structure to
"unsaved_changes", and have it be TRUE iff changes have been made to the
file since it was read - *not* if it's a temporary file from a live
capture.

Check the "is_tempfile" member, and the "unsaved_changes" member, when
appropriate.

Just have a set_toolbar_for_capture_file() routine that updates the
"save", "close", and "reload" toolbar as appropriate, given a
capture_file structure - absorb the function of
set_toolbar_for_unsaved_capture_file() into it.

svn path=/trunk/; revision=42721
15 files changed:
cfile.c
cfile.h
file.c
rawshark.c
tshark.c
ui/gtk/capture_dlg.c
ui/gtk/capture_file_dlg.c
ui/gtk/drag_and_drop.c
ui/gtk/file_import_dlg.c
ui/gtk/main.c
ui/gtk/main_menubar.c
ui/gtk/main_toolbar.c
ui/gtk/main_toolbar.h
ui/gtk/new_packet_list.c
ui/gtk/summary_dlg.c