Hi all,

Whats the easiest way to "grey out" an entire sub menu?
I'm using GtkItemFactory to construct my menu.

This call is sufficient to grey out an item:

gtk_widget_set_sensitive(gtk_item_factory_get_widget(menu_items,
"/File/Open"), FALSE);

But I want to "grey out" an entire sub menu without the hassle of having
to call: <greyout1>; <greyout2>; <greyout3>;  ... etc.

If I just "grey out" the root item,

i.e: gtk_widget_set_sensitive(gtk_item_factory_get_widget(menu_items,
"/File"), FALSE); )

The the sub menu disappears but pressing a shortcut key still activates
the associated menu command.

Any ideas / clues?

Thanks
-- 
Daniel Pekelharing

_______________________________________________
gtk-app-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to