diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-08-25 11:06:32 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-08-25 11:06:32 +0000 |
commit | cd016e69a9cc2378bf57f2435d38a4686fbb9cc2 (patch) | |
tree | f8347dba3892eae464ebd0a37e6097a5d6dcc499 /gtk/dcerpc_stat.c | |
parent | 764114e914199bc8ee251b71e78f09f6ec7326cf (diff) |
Update to IO-Stat to put the capture filename on the titlebar
to make it easier to navigate when having multiple instances of ethereal
and io-stat open
at the same time.
Updates to all endpoint talkers and service response time windows to do this as well.
Bonus, when the user opens a new capture file when having these windows open,
the title bar will be updated to reflect the name of the new capture file.
svn path=/trunk/; revision=8251
Diffstat (limited to 'gtk/dcerpc_stat.c')
-rw-r--r-- | gtk/dcerpc_stat.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/dcerpc_stat.c b/gtk/dcerpc_stat.c index a3553d9602..df407274bb 100644 --- a/gtk/dcerpc_stat.c +++ b/gtk/dcerpc_stat.c @@ -1,7 +1,7 @@ /* dcerpc_stat.c * dcerpc_stat 2002 Ronnie Sahlberg * - * $Id: dcerpc_stat.c,v 1.12 2003/08/19 10:09:20 sahlberg Exp $ + * $Id: dcerpc_stat.c,v 1.13 2003/08/25 11:06:31 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -83,7 +83,11 @@ uuid_equal(e_uuid_t *uuid1, e_uuid_t *uuid2) static void dcerpcstat_reset(rpcstat_t *rs) { + char title_string[256]; reset_srt_table_data(&rs->srt_table); + + snprintf(title_string, 255, "DCE-RPC Service Response Time statistics for %s version %d.%d : %s", rs->prog, rs->ver&0xff, rs->ver>>8, cfile.filename); + gtk_window_set_title(GTK_WINDOW(rs->win), title_string); } @@ -157,7 +161,7 @@ gtk_dcerpcstat_init(char *optarg) { rpcstat_t *rs; guint32 i, max_procs; - char title_string[60]; + char title_string[256]; char filter_string[256]; GtkWidget *vbox; GtkWidget *stat_label; @@ -206,7 +210,7 @@ gtk_dcerpcstat_init(char *optarg) rs->win=gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(rs->win), 550, 400); - sprintf(title_string,"DCE-RPC Service Response Time statistics for %s version %d.%d", rs->prog, rs->ver&0xff,rs->ver>>8); + snprintf(title_string, 255, "DCE-RPC Service Response Time statistics for %s version %d.%d : %s", rs->prog, rs->ver&0xff, rs->ver>>8, cfile.filename); gtk_window_set_title(GTK_WINDOW(rs->win), title_string); SIGNAL_CONNECT(rs->win, "destroy", win_destroy_cb, rs); |