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/rpc_stat.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/rpc_stat.c')
-rw-r--r-- | gtk/rpc_stat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/rpc_stat.c b/gtk/rpc_stat.c index 8e8a260f69..47c9d66fbd 100644 --- a/gtk/rpc_stat.c +++ b/gtk/rpc_stat.c @@ -1,7 +1,7 @@ /* rpc_stat.c * rpc_stat 2002 Ronnie Sahlberg * - * $Id: rpc_stat.c,v 1.14 2003/08/25 11:06:32 sahlberg Exp $ + * $Id: rpc_stat.c,v 1.15 2003/09/02 08:27:41 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -35,6 +35,7 @@ #include <gtk/gtk.h> #include "menu.h" #include "epan/packet_info.h" +#include "epan/filesystem.h" #include "simple_dialog.h" #include "tap.h" #include "../register.h" @@ -65,7 +66,7 @@ rpcstat_reset(rpcstat_t *rs) reset_srt_table_data(&rs->srt_table); - snprintf(title_string, 256, "ONC-RPC Service Response Time statistics for %s version %d : %s", rs->prog, rs->version, cfile.filename); + snprintf(title_string, 256, "ONC-RPC Service Response Time statistics for %s version %d : %s", rs->prog, rs->version, get_basename(cfile.filename)); gtk_window_set_title(GTK_WINDOW(rs->win), title_string); } @@ -211,7 +212,7 @@ gtk_rpcstat_init(char *optarg) rs->win=gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(rs->win), 550, 400); - snprintf(title_string, 256, "ONC-RPC Service Response Time statistics for %s version %d : %s", rs->prog, rs->version, cfile.filename); + snprintf(title_string, 256, "ONC-RPC Service Response Time statistics for %s version %d : %s", rs->prog, rs->version, get_basename(cfile.filename)); gtk_window_set_title(GTK_WINDOW(rs->win), title_string); SIGNAL_CONNECT(rs->win, "destroy", win_destroy_cb, rs); |