Jamiil Abdullah-Alkadir wrote:
Thanks Tristan for you prompt response.
I did try your suggestion, but to no avail. After making the changes to my .cpp file, I now get a messages saying: "... error: 'GTK_CALLBACK' undeclared ..."

Try GTK_SIGNAL_FUNC(Quit)

regards
Marcel


Perhaps this macro was not yet included in the 1.2.10 version, but in a later version, do you know?


I'll keep waiting, hopefully there'll be a GTK+ developer that will read this message and clear this for me, and the millions of GTK+ programmers who bought the "Learn GTK+ Programming in 21...." from SAMS.


Again, thank you, Tristan.

From: Tristan Van Berkom <[EMAIL PROTECTED]>
To: Jamiil Abdullah-Alkadir <[EMAIL PROTECTED]>
CC: gtk-app-devel-list@gnome.org,  gtk-list@gnome.org
Subject: Re: Newbey Question
Date: Thu, 07 Apr 2005 18:50:53 -0400

Jamiil Abdullah-Alkadir wrote:
[...]

  //Register CallBacks <<== **Here is the problem 8)
  gtk_signal_connect(GTK_OBJECT(btnExit), "clicked", Quit, NULL);


gtk_signal_connect uses functions with any signatures, they
must all be cast to `void (*) ()' though first.

try:
gtk_signal_connect(GTK_OBJECT(btnExit), "clicked",
                   GTK_CALLBACK (Quit), NULL);

Cheers,
                       -Tristan


_________________________________________________________________
Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




--
http://www.xmlBlaster.org
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to