Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 37559: /trunk/ /trunk/epan/: Makefil
From: Jakub Zawadzki <[email protected]>
Date: Wed, 22 Jun 2011 11:45:19 +0200
On Wed, Jun 22, 2011 at 09:15:12AM +0200, Stig Bj?rlykke wrote:
> On Mon, Jun 6, 2011 at 12:39 AM,  <[email protected]> wrote:
> > Log:
> >  Some work on generalizing the "display filter" tap parameter dialog box
> >  to more generally support fetching parameters for taps.
> 
> This changes removed the "Filter" from various statistics dialogs:
> - "Packet Lengths..."
> - "IP Destinations..."
> - "IP Addresses..."
> - "IP Protocol Types..."
> 
> and probably many more.

Can you test attached patch?
Index: gtk/stats_tree_stat.c
===================================================================
--- gtk/stats_tree_stat.c	(wersja 37739)
+++ gtk/stats_tree_stat.c	(kopia robocza)
@@ -331,6 +331,9 @@
 	gdk_window_raise(st->pr->win->window);
 }
 
+static tap_param tree_stat_params[] = {
+	{ PARAM_FILTER, "Filter", NULL }
+};
 
 static void
 register_gtk_stats_tree_tap (gpointer k _U_, gpointer v, gpointer p _U_)
@@ -345,6 +348,8 @@
 	cfg->pr->stat_dlg->init_string = g_strdup_printf("%s,tree",cfg->abbr);
 	cfg->pr->stat_dlg->tap_init_cb = init_gtk_tree;
 	cfg->pr->stat_dlg->index = -1;
+	cfg->pr->stat_dlg->nparams = G_N_ELEMENTS(tree_stat_params);
+	cfg->pr->stat_dlg->params = tree_stat_params;
 
 	register_dfilter_stat(cfg->pr->stat_dlg, cfg->name, cfg->stat_group);
 }