aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/smb_stat.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-09-02 08:27:43 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-09-02 08:27:43 +0000
commitb0bec4d79a9262392a34f5c50134060485789a6f (patch)
tree4c7f2f46e74ca5104acbc1ff90688621bff92c4d /gtk/smb_stat.c
parentcd1524c3196fe8585ce88600b8454da5e253b741 (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/smb_stat.c')
-rw-r--r--gtk/smb_stat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/smb_stat.c b/gtk/smb_stat.c
index 54a1a9d3d4..39e58fb931 100644
--- a/gtk/smb_stat.c
+++ b/gtk/smb_stat.c
@@ -1,7 +1,7 @@
/* smb_stat.c
* smb_stat 2003 Ronnie Sahlberg
*
- * $Id: smb_stat.c,v 1.11 2003/08/25 11:06:32 sahlberg Exp $
+ * $Id: smb_stat.c,v 1.12 2003/09/02 08:27:43 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 "../epan/value_string.h"
#include "../smb.h"
@@ -68,7 +69,7 @@ smbstat_reset(void *pss)
reset_srt_table_data(&ss->smb_srt_table);
reset_srt_table_data(&ss->trans2_srt_table);
reset_srt_table_data(&ss->nt_trans_srt_table);
- snprintf(title, 255, "SMB Service Response Time statistics: %s", cfile.filename);
+ snprintf(title, 255, "SMB Service Response Time statistics: %s", get_basename(cfile.filename));
gtk_window_set_title(GTK_WINDOW(ss->win), title);
}
@@ -155,7 +156,7 @@ gtk_smbstat_init(char *optarg)
ss->win=gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size(GTK_WINDOW(ss->win), 550, 600);
- snprintf(title, 255, "SMB Service Response Time statistics: %s", cfile.filename);
+ snprintf(title, 255, "SMB Service Response Time statistics: %s", get_basename(cfile.filename));
gtk_window_set_title(GTK_WINDOW(ss->win), title);
SIGNAL_CONNECT(ss->win, "destroy", win_destroy_cb, ss);