passing parameters



Hi,
Is it right to do something like this ?

int = 0;
gtk_signal_connect (GTK_OBJECT(glarea), "motion_notify_event",
                        GTK_SIGNAL_FUNC(glarea_motion_notify), gpointer(id);

int glarea_motion_notify (GtkWidget* widget, GdkEventMotion* event, gpointer 
id)
{
    //whatever
}

Actually my code doesn't work. But I need to pass the id variable as a 
parameter.
Any idea ?
Cheers,
Sam

------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr 





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