RE: [gtk-list] add menu items programmatically to GtkMenuItemFactory



You'll need to create the menus programmatically...in other words, don't use
the GtkMenuItemFactory.  There's a good tutorial on this on www.gtk.org if
you haven't found it already.

The tutorial actually emphasizes this way as "the hard way".  I've only
briefly investigated created menus programatically, but I do believe it's
the only way that you can create the menu dynamically.

Gregory S. Read
readgs@mpco.com


> -----Original Message-----
> From: Ray Clouse [mailto:ray.clouse@boeing.com]
> Sent: Tuesday, April 06, 1999 2:00 PM
> To: gtk-list@redhat.com
> Subject: [gtk-list] add menu items programmatically to
> GtkMenuItemFactory
> 
> 
> I'm doing menus "the easy way" but I haven't found any 
> examples/tutorials/docs
> on how to add or change a menu item once a menu has been 
> created.  For example,
> I have the following menu:
> 
> {"/View/_Wingman's",          NULL,   0,              0, "<Branch>" },
> 
> I want to add menu items to this in my program when certain 
> events occur.  How?
> 
> --
> --------------------------------------------------------------
> -----------
> Ray Clouse                         |             Don't fear 
> the penguins.
> Engineer Scientist/Specialist      |
> Boeing Expendable Launch Vehicles  |  Ray.Clouse AT boeing.com
> Huntington Beach, CA               |  rclouse AT atdot.org
> 
> 
> -- 
> To unsubscribe: mail -s unsubscribe 
> gtk-list-request@redhat.com < /dev/null
> 



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