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/endpoint_talkers_ipx.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/endpoint_talkers_ipx.c')
-rw-r--r-- | gtk/endpoint_talkers_ipx.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/endpoint_talkers_ipx.c b/gtk/endpoint_talkers_ipx.c index 624e23ac3e..5f336be4e1 100644 --- a/gtk/endpoint_talkers_ipx.c +++ b/gtk/endpoint_talkers_ipx.c @@ -1,7 +1,7 @@ /* endpoint_talkers_ipx.c * endpoint_talkers_ipx 2003 Ronnie Sahlberg * - * $Id: endpoint_talkers_ipx.c,v 1.2 2003/08/24 22:34:31 guy Exp $ + * $Id: endpoint_talkers_ipx.c,v 1.3 2003/08/25 11:06:31 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -71,8 +71,11 @@ static void ipx_talkers_reset(void *pit) { ipx_talkers_t *ipx_talkers=(ipx_talkers_t *)pit; + char title[256]; reset_ett_table_data(&ipx_talkers->talkers); + snprintf(title, 255, "IPX Talkers: %s", cfile.filename); + gtk_window_set_title(GTK_WINDOW(ipx_talkers->win), title); } @@ -106,7 +109,7 @@ gtk_ipx_talkers_init(char *optarg) GtkWidget *vbox; GtkWidget *label; GString *error_string; - + char title[256]; if(!strncmp(optarg,"talkers,ipx,",12)){ filter=optarg+12; @@ -118,7 +121,8 @@ gtk_ipx_talkers_init(char *optarg) ipx_talkers->win=gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(ipx_talkers->win), 750, 400); - gtk_window_set_title(GTK_WINDOW(ipx_talkers->win), "IPX Talkers"); + snprintf(title, 255, "IPX Talkers: %s", cfile.filename); + gtk_window_set_title(GTK_WINDOW(ipx_talkers->win), title); SIGNAL_CONNECT(ipx_talkers->win, "destroy", win_destroy_cb, ipx_talkers); |