Re: [gtk-list] Re: Gtk_MenuFactory in gtk--?
- From: Tero Pulkkinen <terop students cc tut fi>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Gtk_MenuFactory in gtk--?
- Date: 22 Mar 1998 05:30:47 +0200
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]