aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/endpoint_talkers_table.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-09-15 20:37:37 +0000
committerGuy Harris <guy@alum.mit.edu>2003-09-15 20:37:37 +0000
commit673e47d4a9a1a79170bc93b8df23c6ac328bb531 (patch)
treed1a536772bd6167431c28ecb60a637804f762b3b /gtk/endpoint_talkers_table.c
parent4339a40c036664a30485c50692a9d9dba5419bbe (diff)
Keep a "display name" as part of a capture_file structure; for live
capture temporary files, it's "<capture", and for saved capture files, it's the last component of the pathname of the file. Use that in various places when displaying the file name. svn path=/trunk/; revision=8474
Diffstat (limited to 'gtk/endpoint_talkers_table.c')
-rw-r--r--gtk/endpoint_talkers_table.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/endpoint_talkers_table.c b/gtk/endpoint_talkers_table.c
index d9402df48b..39e3976006 100644
--- a/gtk/endpoint_talkers_table.c
+++ b/gtk/endpoint_talkers_table.c
@@ -4,7 +4,7 @@
* endpoint_talkers_table 2003 Ronnie Sahlberg
* Helper routines common to all endpoint talkers tap.
*
- * $Id: endpoint_talkers_table.c,v 1.17 2003/09/15 19:05:00 guy Exp $
+ * $Id: endpoint_talkers_table.c,v 1.18 2003/09/15 20:37:36 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -206,8 +206,8 @@ reset_ett_table_data(endpoints_table *et)
guint32 i;
char title[256];
- if (cfile.filename)
- snprintf(title, 255, "%s Conversations: %s", et->name, get_basename(cfile.filename));
+ if (cfile.displayname)
+ snprintf(title, 255, "%s Conversations: %s", et->name, cfile.displayname);
else
snprintf(title, 255, "%s Conversations", et->name);
gtk_window_set_title(GTK_WINDOW(et->win), title);
@@ -884,8 +884,8 @@ init_ett_table(gboolean hide_ports, char *table_name, char *tap_name, char *filt
talkers->name=table_name;
talkers->win=gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size(GTK_WINDOW(talkers->win), 750, 400);
- if (cfile.filename)
- snprintf(title, 255, "%s Conversations: %s", table_name, get_basename(cfile.filename));
+ if (cfile.displayname)
+ snprintf(title, 255, "%s Conversations: %s", table_name, cfile.displayname);
else
snprintf(title, 255, "%s Conversations", table_name);
gtk_window_set_title(GTK_WINDOW(talkers->win), title);