Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: Re: [Ethereal-dev] "Expand Tree" item in context menu

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Tomas Kukosa <tomas.kukosa@xxxxxxxxxxx>
Date: Mon, 22 Mar 2004 07:00:47 +0100
It looks as if the main menu item is still active iff there's a selected
field - you might want to use the same criterion for the main menu
Expand Tree item that's used for the context menu Expand Tree item.

Maybe, I have missed something but I think the code does it (and it works well on my PC).
The criteria for both menus are at lines 1768 and 1769 of menu.c.
1768: set_menu_sensitivity(main_menu_factory, "/View/Expand Tree", cf->finfo_selected->tree_type != -1); 1769: set_menu_sensitivity(tree_view_menu_factory, "/Expand Tree", cf->finfo_selected->tree_type != -1);