Re: gnome menubar w/ toggle or radio items



On Fri, Feb 12, 1999 at 08:58:36PM -0600, Havoc Pennington wrote:
> 
> On Fri, 12 Feb 1999, Andy Kahn wrote:
> > 
> > if i have a gnome app, and then created a gnome menubar which contains
> > toggle buttons and radio buttons, is there a way to get to the actual
> > widget for the toggle/radio button through the menubar?
> > 
> 
> When you call the gnome-app-helper routines to fill the menu, the
> GnomeUIInfo struct's 'widget' field is filled in. You can access it as
> long as you don't re-use the struct - if you do re-use, it will be
> overwritten.
> 

well, the menubar itself doesn't appear to be of GnomeUIInfo type.
e.g., here are the calls i'm making:

	gnome_app_create_menus(GNOME_APP(w->toplev), main_menu);
	gnome_app_install_menu_hints(GNOME_APP(w->toplev), main_menu);

where "main_menu" is an array of GnomeUIInfo structures.  however, this
is a global variable, and is used for menu definitions more than once
in the application.  i suppose i could make another copy of this, but
the majority of the information in this menu is the same (such as
the menu text, callbacks, etc.), so it's rather wasteful.

one of the things that's variable is the widgets from the menu items
(the toggle buttons, radio buttons, whatever).  i was hoping that:

	GNOME_APP(w->toplev)->menubar

could be used to get to the specific toggle/radio button widgets.
is this possible?  or am i misunderstanding how this is supposed
to work?  certainly, a gnome app could have more than one menubar...

thanks,
--andy



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