Ethereal-dev: Re: [Ethereal-dev] UI bugs

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Mon, 21 Apr 2003 17:46:40 -0700
On Mon, Apr 21, 2003 at 05:25:29PM -0700, Guy Harris wrote:
> Both of the first two problems are, as far as I know, a result of a GTK+
> deficiency - disabling a menu item with a submenu doesn't gray out the
> menu item, it merely means that attempting to pop up the submenu doesn't
> do anything.

No, that's not the case in the GTK+ test program that comes with GTK+.

It may be that the way that we set the sensitivity on menu items doesn't
work for items with submenus.  The test program doesn't use an item
factory - it creates menu items explicitly and calls
"gtk_widget_set_sensitive()" on the GtkWidget * it gets back - but we
use an item factory and use "gtk_item_factory_get_widget()" to get the
menu item, but that doesn't seem to get us the item we want to call
"gtk_widget_set_sensitive()" on if the menu path refers to a submenu.