From 9fe3d4b4f356084e8631a972e0217f02e344ff3e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 5 Jun 2012 06:52:18 +0000 Subject: If we do a Save or Save As with a move, don't reread the capture file, just tweak the elements in the capture_file structure as necessary and poke the UI to update stuff such as the windows title. If we do a Save or Save As with a copy, don't reread the capture file, just close the old wtap, open a wtap for the copy, and tweak the elements in the capture_file structure as necessary and poke the UI to update stuff such as the windows title. Otherwise, don't do a full read-and-dissect pass on the capture file, just close the old wtap, open a wtap for the new file, tweak the elements in the capture_file structure as necessary and poke the UI to update stuff such as the windows title, and rescan the file to update the packet offsets (and cause Wiretap to regenerate, for a gzipped file, the information needed to support fast random access to the gzipped file). This should speed up Save and Save As a bit, as well as removing some glitches in the UI (e.g., you won't see the packet list disappear and reappear). svn path=/trunk/; revision=43101 --- ui/gtk/main_statusbar.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ui/gtk/main_statusbar.c') diff --git a/ui/gtk/main_statusbar.c b/ui/gtk/main_statusbar.c index 1d3ffbc6e9..324d03f110 100644 --- a/ui/gtk/main_statusbar.c +++ b/ui/gtk/main_statusbar.c @@ -1002,6 +1002,14 @@ statusbar_cf_callback(gint event, gpointer data, gpointer user_data _U_) case(cf_cb_file_reload_finished): statusbar_cf_file_read_finished_cb(data); break; + case(cf_cb_file_rescan_started): + statusbar_cf_file_read_started_cb(data, "Rescanning"); + break; + case(cf_cb_file_rescan_finished): + statusbar_cf_file_read_finished_cb(data); + break; + case(cf_cb_file_fast_save_finished): + break; case(cf_cb_packet_selected): break; case(cf_cb_packet_unselected): -- cgit v1.2.1