Re: [gtk-list] Re: gtk_widget_set_state() with GNOME generated menus.




On Sat, 4 Dec 1999, Chris Phelps wrote:
> 
> I think I understand what you mean now tho...
> The name of the GNOMEUIInfo has pointers to the menu items?
>

The GnomeUIInfo struct has a "widget" field containing the menu item.
 
> ex:
> GNOMEUIInfo menu1 [] =
> {
>       GNOMEUIINFO_SUBTREE("_File", filemenu),
>       GNOMEUIINFO_SUBTREE("_Edit", editmenu),
> }
> 
> what exactly is menu1[0] pointing to after the menu us built?
> 

menu1[0] isn't a pointer, it's a GnomeUIInfo struct.

So menu1[0].widget contains your menu item.

Havoc




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