From cf6d9841e37906448ad1a571a648140325efcae0 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 24 May 2012 05:05:29 +0000 Subject: Keep track, in Wiretap, of whether the file is compressed, and provide an API to fetch that. When doing "Save" on a compressed file, write it out compressed. In the Statistics -> Summary dialog and in capinfos, report whether the file is gzip-compressed. svn path=/trunk/; revision=42818 --- ui/gtk/summary_dlg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui/gtk/summary_dlg.c') diff --git a/ui/gtk/summary_dlg.c b/ui/gtk/summary_dlg.c index bf0ba04f96..18bd8831de 100644 --- a/ui/gtk/summary_dlg.c +++ b/ui/gtk/summary_dlg.c @@ -238,7 +238,9 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_) add_string_to_table(table, &row, "Length:", string_buff); /* format */ - g_snprintf(string_buff, SUM_STR_MAX, "%s", wtap_file_type_string(summary.file_type)); + g_snprintf(string_buff, SUM_STR_MAX, "%s%s", + wtap_file_type_string(summary.file_type), + summary.iscompressed? " (gzip compressed)" : ""); add_string_to_table(table, &row, "Format:", string_buff); /* encapsulation */ -- cgit v1.2.3