Re: [gtk-list] Re: Gtk_MenuFactory in gtk--?



Marsel Osipov <marsel@lex.infi.net> writes:
> O.K.  Is this the right way?
> 
> Gtk_Widget *menubarWidget = Gtk_Widget(subfactory[0].gtkmenufactory->widget);
>  if(mebar)
>     *mebar = menubarWidget;
> 
> I get the following error when compiling:
> testmfac.cc:49: request for member 'gtkmenufactory' in 'MyWin::subfactory[0]'
> which is of non-aggregate type 'Gtk_MenuFactory *'
> 
> what is my mistake?

you have . even tho you need ->

Anyway, there's a problem with menufactory - as the gtkmenufactory
-variable is protected. Get newest gtk--- (just uploaded 2 minutes
ago). There's also example program about how to use menufactory in the
package with name testgtkmm.cc and testgtkmm.h. (Sorry that giving example
took that long time - had to actually make one :( )

-- 
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --



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