How to change the label on a menu.



Hi,

  Can someone tell me how to change the label on a menu item in GTK?
I've created the menu with a label (say: "Turn on Light") and when a
user selects it, I wish to change the lable (to say: "Turn off
Light").  I've looked at the API and can not find an applicable
function.  I've also looked at the source code and it appears that the
pointer to the label is "lost" and thus it might not be possible to 
do this.  Any help is greatly appreciated.

     Thanks,
            Dav


-----------------------------------------------------------------------
- J. Davison de St. Germain         dav cs utah edu    (801) 581-4078 -
- Chief Software Engineer           http://www.cs.utah.edu/~dav       -
- SCI Institute, SE C-SAFE          University of Utah                -
-----------------------------------------------------------------------




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]