aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/summary_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-05-24 05:05:29 +0000
committerGuy Harris <guy@alum.mit.edu>2012-05-24 05:05:29 +0000
commitcf6d9841e37906448ad1a571a648140325efcae0 (patch)
tree8e14522dbdae5295fd41a236e7f9e49daab36c4e /ui/gtk/summary_dlg.c
parent73888ed977e7ba3356d3c5e31c182508d576dfc1 (diff)
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
Diffstat (limited to 'ui/gtk/summary_dlg.c')
-rw-r--r--ui/gtk/summary_dlg.c4
1 files changed, 3 insertions, 1 deletions
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 */