On 5/8/07, William Ramsay <[EMAIL PROTECTED]> wrote:
Hi Felix,
Using (address->pointer number) does indeed do what I want. It allows
me to
pick up a user supplied integer in my "define-external" code.
However, it has
a rather bad side-effect. The code is handled in a dialog box. Using
(g_signal_connect cbut "color-set" #$setColor (address->pointer 1))
will send a 1 to setColor, but it also wipes out my dialog pointer and
crashes the
system on Cancel or Save when I try to destroy it.
Using (g_signal_connect cbut "color-set" #$setColor #f) works fine.
Adding
(address->pointer 1) is the only difference.
Sorry, but what exactly is expected in the g_signal_connect call?
As I understand it, the last argument is an arbitrary pointer (userdata)
pass to the callback uninterpreted. If the callback (setColor) just
prints the number, shouldn't it work.
I apologize for being such a Gtk dolt, but I'm just guessing here.
cheers,
felix
_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users