Re: [gtk-list] Menus and connect_to_method in Gtk--
- From: Guillaume Laurent <glaurent worldnet fr>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Menus and connect_to_method in Gtk--
- Date: 31 May 1998 07:51:49 +0200
Derek Wyatt <derek@scar.utoronto.ca> writes:
> (Signal_proxy0<void,Gtk_MenuItem> &, FileMenu *, int (FileMenu::*)())'
> make: *** [menu.o] Error 1
This means you're trying to connect a gtk signal which returns void to
a method returning int.
> class FileMenu : public Gtk_Menu
> {
> Gtk_MenuItem *newFile, *open, *save, *saveAs, *quit;
>
> public:
> int quit_program(void);
Change this to
void quit_program(void);
and your code should compile fine.
--
Guillaume.
http://www.worldnet.fr/~glaurent
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]