aboutsummaryrefslogtreecommitdiffstats
path: root/epan/stats_tree_priv.h
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2009-02-10 03:54:55 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2009-02-10 03:54:55 +0000
commitfcf2e1bab96d2913e94680c8e2465ab0799c8da5 (patch)
tree3b043a447bd4dd271a3877bdbcd0773a3cde939c /epan/stats_tree_priv.h
parent673f405ad4da4baaebf747c30522f1ca203981c0 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27407 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/stats_tree_priv.h')
-rw-r--r--epan/stats_tree_priv.h1
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;