Re: giving gint to a SIGNAL_FUNC

>gtk_signal_connect(GTK_OBJECT(button), "clicked",
>                    GTK_SIGNAL_FUNC(log), NULL);
>Instead of "NULL" I want to give a gint to the SIGNAL_FUNC. Does anybody
>know how to do this?
Use GINT_TO_POINTER( var ) inplace of NULL, and in your callback
use gint var = GPOINTER_TO_INT( data );

Halfline(Ray Strode)
Get Your Private, Free E-mail from MSN Hotmail at

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