aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_info_dlg.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2004-04-13 18:01:40 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2004-04-13 18:01:40 +0000
commit254aba82823a5ffb4e08034effac5465e4deb8c1 (patch)
tree6a54825847abbc0db6dc02968b0555a89d2dfb65 /gtk/capture_info_dlg.c
parent8572046cd8843dd1044ba9ddaccb58703e279b17 (diff)
From Jon Oberheide: Add interface name to the capture and ethereal window
while capturing. svn path=/trunk/; revision=10594
Diffstat (limited to 'gtk/capture_info_dlg.c')
-rw-r--r--gtk/capture_info_dlg.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/capture_info_dlg.c b/gtk/capture_info_dlg.c
index 76a37cdad7..3dcf101b21 100644
--- a/gtk/capture_info_dlg.c
+++ b/gtk/capture_info_dlg.c
@@ -1,7 +1,7 @@
/* capture_info_dlg.c
* Routines for packet capture info dialog
*
- * $Id: capture_info_dlg.c,v 1.13 2004/03/13 15:15:22 ulfl Exp $
+ * $Id: capture_info_dlg.c,v 1.14 2004/04/13 18:01:40 tuexen Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -84,12 +84,14 @@ capture_info_delete_cb(GtkWidget *w _U_, GdkEvent *event _U_, gpointer data _U_)
/* create the capture info dialog */
/* will keep pointers to the fields in the counts parameter */
void capture_info_create(
-capture_info *cinfo)
+capture_info *cinfo,
+gchar *iface)
{
unsigned int i;
GtkWidget *main_vb, *stop_bt, *counts_tb;
GtkWidget *counts_fr, *running_tb, *running_label, *bbox;
capture_info_ui_t *info;
+ gchar *cap_w_title;
info = g_malloc0(sizeof(capture_info_ui_t));
info->counts[0].title = "Total";
@@ -117,7 +119,9 @@ capture_info *cinfo)
info->counts[11].title = "Other";
info->counts[11].value_ptr = &(cinfo->counts->other);
- info->cap_w = dlg_window_new("Ethereal: Capture");
+ cap_w_title = g_strdup_printf("Ethereal: Capture - Interface %s", iface);
+
+ info->cap_w = dlg_window_new(cap_w_title);
gtk_window_set_modal(GTK_WINDOW(info->cap_w), TRUE);
/* Container for capture display widgets */