diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-09-02 08:27:43 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-09-02 08:27:43 +0000 |
commit | b0bec4d79a9262392a34f5c50134060485789a6f (patch) | |
tree | 4c7f2f46e74ca5104acbc1ff90688621bff92c4d /gtk/endpoint_talkers_eth.c | |
parent | cd1524c3196fe8585ce88600b8454da5e253b741 (diff) |
When putting the filename in the titlebar
just put the filename there and not the full path to the file.
svn path=/trunk/; revision=8329
Diffstat (limited to 'gtk/endpoint_talkers_eth.c')
-rw-r--r-- | gtk/endpoint_talkers_eth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/endpoint_talkers_eth.c b/gtk/endpoint_talkers_eth.c index 2cbe974efe..88ca6f6dc4 100644 --- a/gtk/endpoint_talkers_eth.c +++ b/gtk/endpoint_talkers_eth.c @@ -1,7 +1,7 @@ /* endpoint_talkers_eth.c * endpoint_talkers_eth 2003 Ronnie Sahlberg * - * $Id: endpoint_talkers_eth.c,v 1.10 2003/08/30 01:18:14 sahlberg Exp $ + * $Id: endpoint_talkers_eth.c,v 1.11 2003/09/02 08:27:25 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -36,6 +36,7 @@ #include <string.h> #include "menu.h" #include "../epan/packet_info.h" +#include "../epan/filesystem.h" #include "../tap.h" #include "../register.h" #include "compat_macros.h" @@ -88,7 +89,7 @@ gtk_eth_talkers_init(char *optarg) talkers->name="Ethernet"; talkers->win=gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(talkers->win), 750, 400); - snprintf(title, 255, "Ethernet Talkers: %s", cfile.filename); + snprintf(title, 255, "Ethernet Talkers: %s", get_basename(cfile.filename)); gtk_window_set_title(GTK_WINDOW(talkers->win), title); SIGNAL_CONNECT(talkers->win, "destroy", ett_win_destroy_cb, talkers); |