summaryrefslogtreecommitdiff
path: root/gtk/rpc_stat.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-08-19 10:09:20 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-08-19 10:09:20 +0000
commit4ea90cdabcbd2b63b94536825526ccf98fb9754c (patch)
tree4616118ed47c5515b20539213b6ae12032a4851a /gtk/rpc_stat.c
parent4ee16a83ebe368c456c9d7d845896e577ff63b92 (diff)
downloadwireshark-4ea90cdabcbd2b63b94536825526ccf98fb9754c.tar.gz
Update to the Response Time Statistics taps.
SMB/FC/ONC-RPC/DCE-RPC now all use the default tap filter string as the same filter string as is used in the main window instead of using a default NULL filter string. The idea is that if you have applied a certain filter to your main window, it is likely that if you want to invoke the response time statistics feature you probably want to do the response time statistics over the same set of packets, i.e. the ones you see in the main window. svn path=/trunk/; revision=8192
Diffstat (limited to 'gtk/rpc_stat.c')
-rw-r--r--gtk/rpc_stat.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/rpc_stat.c b/gtk/rpc_stat.c
index 73f3a937f2..7a94814323 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.12 2003/06/22 04:00:21 gerald Exp $
+ * $Id: rpc_stat.c,v 1.13 2003/08/19 10:09:20 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -43,6 +43,7 @@
#include "compat_macros.h"
#include "service_response_time_table.h"
+extern GtkWidget *main_display_filter_widget;
/* used to keep track of the statistics for an entire program interface */
typedef struct _rpcstat_t {
@@ -351,6 +352,7 @@ static void
gtk_rpcstat_cb(GtkWidget *w _U_, gpointer d _U_)
{
int i;
+ char *filter;
/* if the window is already open, bring it to front */
if(dlg){
@@ -424,6 +426,10 @@ gtk_rpcstat_cb(GtkWidget *w _U_, gpointer d _U_)
filter_entry=gtk_entry_new_with_max_length(250);
gtk_box_pack_start(GTK_BOX(filter_box), filter_entry, FALSE, FALSE, 0);
+ filter=gtk_entry_get_text(GTK_ENTRY(main_display_filter_widget));
+ if(filter){
+ gtk_entry_set_text(GTK_ENTRY(filter_entry), filter);
+ }
gtk_widget_show(filter_entry);
gtk_box_pack_start(GTK_BOX(dlg_box), filter_box, TRUE, TRUE, 0);