summaryrefslogtreecommitdiff
path: root/ui/gtk/packet_list.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-11-26 18:52:29 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-11-26 18:52:29 +0000
commit77dafd7b7c747578a6030ba314451adc729341e8 (patch)
treea977d260736215bfc8910ff58c99e5555415f1f9 /ui/gtk/packet_list.c
parent044514edbd7f427c891225e07bd3a44a65328b80 (diff)
downloadwireshark-77dafd7b7c747578a6030ba314451adc729341e8.tar.gz
Add comment syúmmary to GUI and add Capture comment from SHB.
svn path=/trunk/; revision=46206
Diffstat (limited to 'ui/gtk/packet_list.c')
-rw-r--r--ui/gtk/packet_list.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/gtk/packet_list.c b/ui/gtk/packet_list.c
index 4f382ac7be..b95d38744d 100644
--- a/ui/gtk/packet_list.c
+++ b/ui/gtk/packet_list.c
@@ -1706,6 +1706,18 @@ packet_list_return_all_comments(GtkTextBuffer *buffer)
guint32 framenum;
frame_data *fdata;
gchar *buf_str;
+ wtapng_section_t* shb_inf = NULL;
+
+ /* Get info from SHB */
+ shb_inf = wtap_file_get_shb_info(cfile.wth);
+
+ if(shb_inf != NULL){
+ if(shb_inf->opt_comment){
+ buf_str = g_strdup_printf("%s \n\n",shb_inf->opt_comment);
+ gtk_text_buffer_insert_at_cursor (buffer, buf_str, -1);
+ g_free(buf_str);
+ }
+ }
for (framenum = 1; framenum <= cfile.count ; framenum++) {
fdata = frame_data_sequence_find(cfile.frames, framenum);