aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/summary_dlg.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-02-23 21:29:13 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-02-23 21:29:13 +0000
commitb5a2ba98be35a97398f54d9fbb54d4ae8b4a6a84 (patch)
tree9e31a8282a1c5336a4ddc1f49f927f708bdf0beb /ui/gtk/summary_dlg.c
parenta062fb34bd2262dc0f1510f66c4500b2e531ece9 (diff)
Add SHB info to Summary
svn path=/trunk/; revision=41167
Diffstat (limited to 'ui/gtk/summary_dlg.c')
-rw-r--r--ui/gtk/summary_dlg.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/gtk/summary_dlg.c b/ui/gtk/summary_dlg.c
index 961f984441..012a23a238 100644
--- a/ui/gtk/summary_dlg.c
+++ b/ui/gtk/summary_dlg.c
@@ -55,6 +55,7 @@
#define SUM_STR_MAX 1024
#define FILTER_SNIP_LEN 50
+#define SHB_STR_SNIP_LEN 50
static void
@@ -241,6 +242,21 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_)
/* Capture */
add_string_to_table(table, &row, "", "");
add_string_to_table_sensitive(table, &row, "Capture", "", (summary.ifaces->len > 0));
+ if(summary.shb_hardware){
+ /* trucate the string to a reasonable length */
+ g_snprintf(string_buff, SHB_STR_SNIP_LEN, "%s",summary.shb_hardware);
+ add_string_to_table(table, &row, "Capture HW:",string_buff);
+ }
+ if(summary.shb_os){
+ /* trucate the strings to a reasonable length */
+ g_snprintf(string_buff, SHB_STR_SNIP_LEN, "%s",summary.shb_os);
+ add_string_to_table(table, &row, "OS:", string_buff);
+ }
+ if(summary.shb_user_appl){
+ /* trucate the string to a reasonable length */
+ g_snprintf(string_buff, SHB_STR_SNIP_LEN, "%s",summary.shb_user_appl);
+ add_string_to_table(table, &row, "Capture application:", string_buff);
+ }
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 5);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),