diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2009-02-10 03:54:55 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2009-02-10 03:54:55 +0000 |
commit | f904f42f9da356bcc70377046c7f6617e5bcba4b (patch) | |
tree | 3b043a447bd4dd271a3877bdbcd0773a3cde939c /plugins | |
parent | ba78d5f30e5a6f3873fcec88fc95ae3ce320a76a (diff) | |
download | wireshark-f904f42f9da356bcc70377046c7f6617e5bcba4b.tar.gz wireshark-f904f42f9da356bcc70377046c7f6617e5bcba4b.tar.bz2 wireshark-f904f42f9da356bcc70377046c7f6617e5bcba4b.zip |
Remove an ugly hack:
There was an ugly hack while creating the menu, that tried to detect the stat_group a stats_tree belongs to by looking at the name string. That makes it unnecessarily hard to understand how the menu is really created.
Fix: Add a new function stats_tree_register_with_group() that takes the stat_group as a parameter. Use this function where a stats_tree doesn't fit into the default "unsorted" group.
svn path=/trunk/; revision=27407
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/stats_tree/pinfo_stats_tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/stats_tree/pinfo_stats_tree.c b/plugins/stats_tree/pinfo_stats_tree.c index f64987f17d..db5f06b545 100644 --- a/plugins/stats_tree/pinfo_stats_tree.c +++ b/plugins/stats_tree/pinfo_stats_tree.c @@ -139,7 +139,7 @@ static int dsts_stats_tree_packet(stats_tree* st, packet_info* pinfo, epan_disse void register_pinfo_stat_trees(void) { stats_tree_register("ip","ip_hosts",st_str_ip, ip_hosts_stats_tree_packet, ip_hosts_stats_tree_init, NULL ); stats_tree_register("ip","ptype",st_str_ptype, ptype_stats_tree_packet, ptype_stats_tree_init, NULL ); - stats_tree_register("frame","plen",st_str_plen, plen_stats_tree_packet, plen_stats_tree_init, NULL ); + stats_tree_register_with_group("frame","plen",st_str_plen, plen_stats_tree_packet, plen_stats_tree_init, NULL, REGISTER_STAT_GROUP_GENERIC ); stats_tree_register("ip","dests",st_str_dsts, dsts_stats_tree_packet, dsts_stats_tree_init, NULL ); } |