Ethereal-cvs: [Ethereal-cvs] rev 17251: /trunk/gtk/: file_dlg.c file_dlg.h packet_list.c range
User: guy
Date: 2006/02/11 05:21 AM
Log:
In "Save As", support only file types we can write to; that simplifies
the logic, making it easier to get it right (fewer interactions between
components of the dialog - the file type doesn't affect whether we can
save some but not all packets). It also means we don't offer a file
type for saving, only to take it away if you choose anything other than
saving all packets.
If the capture file is a temporary file from a capture done in the
current Ethereal session, it's libpcap format, which we can write to, so
you would be able to save it.
If it's a saved file we read in, saving the file in its entirety in its
own format is just copying the file, and it's not clear supporting that
adds enough useful functionality to justify the extra complication.
Fix "range_update_dynamics()" to update all the rows of the range
button/count table properly (make the button active iff there's
a non-zero count in the currently-selected column, make a count active
iff the column is selected), to select the "Captured" column if the
count of displayed packets goes to zero, and to select the "Save all
packets" row if the count of packets in the currently-selected row and
column goes to zero. (XXX - we should perhaps do that with the
"user-defined range" counts as well, which would involve updating the
counts on every change to the range field.)
Directory: /trunk/gtk/
Changes Path Action
+20 -65 file_dlg.c Modified
+1 -1 file_dlg.h Modified
+1 -1 packet_list.c Modified
+86 -58 range_utils.c Modified
+0 -14 range_utils.h Modified
http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=17251&view=rev