[10023] in The GTK GIMP ToolKit mailing list archive
[gtk-list] GTK Menu Item Labels
daemon@ATHENA.MIT.EDU (Shaw Terwilliger)
Wed Nov 11 14:33:23 1998
Date: Wed, 11 Nov 1998 13:31:49 -0600
From: Shaw Terwilliger <sterwill@abisource.com>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
I've got a GTK Item Factory full of menu items (menu
factory). I want to be able to change the text in the
label for a given menu item at run-time. Other than
destroying menu objects and adding them again, is there any
way to change what's in each menu object's label object?
I can get a pointer to the menu widget from the item
factory (through the path string); is it safe to be
twiddling with the menu's label at this point?
Is it also possible that I should be deleting the label
item from the menu container and re-adding another?
If this is correct (and it would suit me fine),
how do I go about getting a pointer to the label in
the container (menu object) so I can destroy it?
Since this menu was built from a factory, I don't have
pointers to the labels I attached to the menu items.
--
Shaw Terwilliger
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null