"Greying out" Menu Items
- From: Daniel Pekelharing <legendstar gmail com>
- To: gtk-app-devel-list Mailing-Lists <gtk-app-devel-list gnome org>
- Subject: "Greying out" Menu Items
- Date: Sat, 07 May 2005 20:00:21 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]