diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-08-25 11:06:32 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-08-25 11:06:32 +0000 |
commit | b8f4929c00a843923babc93766eed67e76f85f54 (patch) | |
tree | f8347dba3892eae464ebd0a37e6097a5d6dcc499 /gtk/fc_stat.c | |
parent | ad2d8a54b3d378302c10ebabcbd3a7e3abb78267 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8251 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/fc_stat.c')
-rw-r--r-- | gtk/fc_stat.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/fc_stat.c b/gtk/fc_stat.c index 6a2b4368b8..5b5b00d4a5 100644 --- a/gtk/fc_stat.c +++ b/gtk/fc_stat.c @@ -1,7 +1,7 @@ /* fc_stat.c * fc_stat 2003 Ronnie Sahlberg * - * $Id: fc_stat.c,v 1.2 2003/08/19 10:09:20 sahlberg Exp $ + * $Id: fc_stat.c,v 1.3 2003/08/25 11:06:32 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -61,8 +61,11 @@ static void fcstat_reset(void *pfc) { fcstat_t *fc=(fcstat_t *)pfc; + char title[256]; reset_srt_table_data(&fc->fc_srt_table); + snprintf(title, 255, "Fibre Channel Service Response Time statistics : %s", cfile.filename); + gtk_window_set_title(GTK_WINDOW(fc->win), title); } static int @@ -122,6 +125,7 @@ gtk_fcstat_init(char *optarg) GString *error_string; int i; GtkWidget *vbox; + char title[256]; if(!strncmp(optarg,"fc,srt,",7)){ filter=optarg+7; @@ -133,7 +137,8 @@ gtk_fcstat_init(char *optarg) fc->win=gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(fc->win), 550, 400); - gtk_window_set_title(GTK_WINDOW(fc->win), "Fibre Channel Service Response Time statistics"); + snprintf(title, 255, "Fibre Channel Service Response Time statistics : %s", cfile.filename); + gtk_window_set_title(GTK_WINDOW(fc->win), title); SIGNAL_CONNECT(fc->win, "destroy", win_destroy_cb, fc); vbox=gtk_vbox_new(FALSE, 0); |