Re: problem with gtk_signal_connect



On Wed, 2001-10-03 at 18:06, Jean Michel LECONTE wrote:

I have probs to pass a structure (PlTerm)  through a signal_connect as the 
argument of the function i want to connect to the signal
it seems that the argument *goal  is reinitialized when i fall in the 
function callback_signals

Why ?

Thanks a lot 

void callback_signals(GtkWidget *widg, gpointer *goal)

The callback should be callback_signals(GtkWidget *widg, gpointer goal)

 arg=Rd_Callable_Check(*(PlTerm *)goal,&functor,&arity);

Possibly this should be (PlTerm *)goal now, although I don't know what
the declaration of Rd_Callable_Check is.

iain

-- 
"It isn't rebels who cause the troubles of the world, 
it's the troubles that cause the rebels." - Carl Oglesby

Attachment: pgpSJy9aof_OK.pgp
Description: PGP signature



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