Menufactory problems (serious?)



Hey folks,

I'm trying to make use of the menu factory alla. the docs on:

http://www.gtk.org/tutorial/gtk_tut-13.html

But when I try to compile, I get errors right off the bat:

newslide.c:14: parse error before `menu_items'
newslide.c:15: warning: braces around scalar initializer for
`menu_items[0]'
newslide.c:15: warning: initialization makes integer from pointer
without a cast
newslide.c:15: warning: excess elements in scalar initializer after
`menu_items[0]'  
...
newslide.c: In function `create_menus':
newslide.c:208: `GtkItemFactory' undeclared (first use this function)
newslide.c:208: (Each undeclared identifier is reported only once
newslide.c:208: for each function it appears in.)
newslide.c:208: `item_factory' undeclared (first use this function)
newslide.c:209: `GtkAccelGroup' undeclared (first use this function)
newslide.c:209: `accel_group' undeclared (first use this function)
newslide.c:210: parse error before `nmenu_items'
newslide.c:222: `GTK_TYPE_MENU_BAR' undeclared (first use this function)
newslide.c:228: `nmenu_items' undeclared (first use this function)
newslide.c:233: `menubar' undeclared (first use this function)

I've even upgraded to gtk-1.2.3 ... but still no dice.  I'm going to
guess that the documentation is seriously wrong somehow?

Help would be appreciated.  Email responses preferred.

Dave Topper
--
Technical Director, Virginia Center for Computer Music
Programmer / Analyst, Dean's Office (School of A&S)
http://www.people.virginia.edu/~djt7p
(804) 924-6887



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