Re: [Wireshark-dev] The empty "Tools" menu toplevel item must be removed before the next release

2006-10-17 Thread Ulf Lamping
LEGO wrote: Got it... gtk_item_factory_get_item() is exactly what I needed! Right, that's the one to go (sorry, late response, wasn't online). I've implemented a new function set_menu_visibility() that's working just like the set_menu_sensibility() with the difference that it will hide/sho

Re: [Wireshark-dev] The empty "Tools" menu toplevel item must be removed before the next release

2006-10-17 Thread LEGO
Got it... gtk_item_factory_get_item() is exactly what I needed! On 10/17/06, LEGO <[EMAIL PROTECTED]> wrote: > On 10/16/06, Ulf Lamping <[EMAIL PROTECTED]> wrote: > >[snip] > > You maybe keep it in it's place and just hide it (using the > > gtk_widget_hide/show calls for the menu item widget). Tha

Re: [Wireshark-dev] The empty "Tools" menu toplevel item must be removed before the next release

2006-10-17 Thread LEGO
On 10/16/06, Ulf Lamping <[EMAIL PROTECTED]> wrote: >[snip] > You maybe keep it in it's place and just hide it (using the > gtk_widget_hide/show calls for the menu item widget). That's usually > *much* simpler than finding and inserting at the right place in the > hierarchy later again. That I tho

Re: [Wireshark-dev] The empty "Tools" menu toplevel item must be removed before the next release

2006-10-16 Thread Ulf Lamping
LEGO wrote: > I got the tools menu hidden if there's no items in it... > > Now the problem is that if there's are menu items in it it appears > last (i.e. after "Help") which is not how it should be... > > I been trying to figure out how to move it, but so far without > success, any hints? > You

Re: [Wireshark-dev] The empty "Tools" menu toplevel item must be removed before the next release

2006-10-16 Thread LEGO
I got the tools menu hidden if there's no items in it... Now the problem is that if there's are menu items in it it appears last (i.e. after "Help") which is not how it should be... I been trying to figure out how to move it, but so far without success, any hints? On 10/16/06, Ulf Lamping <[EMAI

Re: [Wireshark-dev] The empty "Tools" menu toplevel item must be removed before the next release

2006-10-16 Thread Daniel Griscom
So, in its current state you would like to discourage casual users from wondering about it. Makes sense to me. However, on my prebuilt Windows executable, version 0.99.3, there's no top level "Tools" menu. Does this mean my executable was compiled without Lua support? Is this the default? If so

Re: [Wireshark-dev] The empty "Tools" menu toplevel item must be removed before the next release

2006-10-16 Thread Daniel Griscom
>Gerald Combs wrote: >> An alternative to keeping it hidden would be to add a default menu item >> with the text "Why is this menu empty?", or "How to add items to this >> menu", which takes the user to a help page describing how to add items. >> >Don't you think this is a very poor mans solut

Re: [Wireshark-dev] The empty "Tools" menu toplevel item must be removed before the next release

2006-10-15 Thread Ulf Lamping
Gerald Combs wrote: > An alternative to keeping it hidden would be to add a default menu item > with the text "Why is this menu empty?", or "How to add items to this > menu", which takes the user to a help page describing how to add items. > Don't you think this is a very poor mans solution - in

Re: [Wireshark-dev] The empty "Tools" menu toplevel item must be removed before the next release

2006-10-15 Thread Gerald Combs
An alternative to keeping it hidden would be to add a default menu item with the text "Why is this menu empty?", or "How to add items to this menu", which takes the user to a help page describing how to add items. LEGO wrote: > The menu is there just when compiled with Lua, and the current > init.

Re: [Wireshark-dev] The empty "Tools" menu toplevel item must be removed before the next release

2006-10-14 Thread LEGO
The menu is there just when compiled with Lua, and the current init.lua adds one item for it. Howhever it would be nice to keep it hidden until it gets populated (I'll take a look at it soon). A second item for that menu (DTD generator), is coming, a tool that parses xml and adds the fields prese

[Wireshark-dev] The empty "Tools" menu toplevel item must be removed before the next release

2006-10-14 Thread Ulf Lamping
Hi List! Currently, the "Tools" top level menu item is empty. When I understand this correct, if a lua script is available it will be put into this menu item. IN IT'S CURRENT STATE, IT SHOULD BE REMOVED - at least when it's empty. Having an empty menu item that no one can use (except for it's