J. Davison de St. Germain wrote:
Hi,

  Can someone please tell me how to change the text on a menu?
For example, if I created the menu with "Turn On Light" and
someone selects it, I wish to change the text to "Turn Off Light".
I would have expected to call gtk_menu_item_set_label() or some
such, but I can't find such a function.


I believe GtkMenuItem is a container...


You need to remove the old child using gtk_container_remove and then add the new label using gtk_container_add.

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to