From 601403570300c61921515bfc9e1a08a8d65cba5f Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 25 May 2012 21:25:55 +0000 Subject: Use GTK+'s GtkMessageDialog for the questions we ask in the process of saving files, and run it modal (which we're already doing with the GtkFileChooserDialog); this means less callback-based state machine stuff, simplifying the code paths a bit. If we're saving a file before closing it, don't bother reloading it after saving it. svn path=/trunk/; revision=42855 --- file.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'file.h') diff --git a/file.h b/file.h index c136e2fc2f..661265c775 100644 --- a/file.h +++ b/file.h @@ -206,9 +206,13 @@ gboolean cf_can_save_as(capture_file *cf); * @param fname the filename to save to * @param save_format the format of the file to save (libpcap, ...) * @param compressed whether to gzip compress the file + * @param dont_reopen TRUE if it shouldn't reopen and make that file the + * current capture file * @return one of cf_status_t */ -cf_status_t cf_save_packets(capture_file * cf, const char *fname, guint save_format, gboolean compressed); +cf_status_t cf_save_packets(capture_file * cf, const char *fname, + guint save_format, gboolean compressed, + gboolean dont_reopen); /** * Export some or all packets from a capture file to a new file. If there's -- cgit v1.2.3