Re: [gtk-list] add menu items programmatically toGtkMenuItemFactory
- From: Tim Janik <timj gtk org>
- To: Ray Clouse <ray clouse boeing com>
- cc: Gtk+ MList <gtk-list redhat com>
- Subject: Re: [gtk-list] add menu items programmatically toGtkMenuItemFactory
- Date: Wed, 7 Apr 1999 00:29:55 +0200 (CEST)
On Tue, 6 Apr 1999, Ray Clouse wrote:
> 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?
to create further menu items you can simply call gtk_item_factory_create_items()
on new entries similar to the above (e.g. {"/View/_Wingman's/X1",0,0,0,0},) once
your event occours.
to delete menu items, simply retrive the menu item widget with
gtk_item_factory_get_widget() and gtk_widget_destroy() that then.
>
> --
> -------------------------------------------------------------------------
> 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
>
>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]