Re: GtkItemFactoryEntry



On Sat, 10 Aug 2002 12:21:36 +0200
Dusausoy Bruno <bruno dusausoy skynet be> wrote:

I want to connect the "Quit" menu item to the "application_quit"
callback, which takes a "GtkWidget *" as argument. The problem is :
"application_quit" is declared in exit.h and "application" (which is a
GtkWidget * thus) is declared in main.c. When i try to compile that
stuff, the compiler says :

 In file included from menu.c:23:
menu.h:27: `application_quit' undeclared here (not in a function)
menu.h:27: initializer element is not constant
menu.h:27: (near initialization for `menu_items[1].callback')
menu.h:27: `application' undeclared here (not in a function)
menu.h:27: initializer element is not constant
menu.h:27: (near initialization for `menu_items[1].callback_action')
make: *** [menu.o] Error 1

How can i make all this stuff working ?

include exit.h in menu.h

regards,
        Olivier

Attachment: pgpaY8okFmzCX.pgp
Description: PGP signature



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