Re: [gtk-list] Gtk_MenuFactory in gtk--?
- From: Guillaume Laurent <glaurent worldnet fr>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Gtk_MenuFactory in gtk--?
- Date: 20 Mar 1998 23:40:04 +0100
Marsel Osipov <marsel@lex.infi.net> writes:
> // compiler produces a mistake here
> // class 'Gtk_MenuFactory' has no member named 'widget'
> // I think this is the reason why menubar is not shown...
> // if(mebar)
> //*mebar = subfactory[0]->widget;
You have to create the widget like this :
Gtk_Widget *menubarWidget = Gtk_Widget(subfactory[0].gtkmenufactory->widget);
ie from the 'widget' member of the 'gtkmenufactory' member of your
Gtk_MenuFactory.
You can also take a look at my MenuFactory class
http://www.worldnet.fr/~glaurent/rose_devel/rosegarden-c++.tgz
--
Guillaume.
http://www.worldnet.fr/~glaurent
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]