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 /epan/stats_tree_priv.h | |
parent | ba78d5f30e5a6f3873fcec88fc95ae3ce320a76a (diff) |
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 'epan/stats_tree_priv.h')
-rw-r--r-- | epan/stats_tree_priv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/stats_tree_priv.h b/epan/stats_tree_priv.h index 304746b322..7bfd9015bf 100644 --- a/epan/stats_tree_priv.h +++ b/epan/stats_tree_priv.h @@ -110,6 +110,7 @@ struct _stats_tree_cfg { gchar* abbr; gchar* name; gchar* tapname; + register_stat_group_t stat_group; gboolean in_use; |