compile error



hi everyone,

  does anyone know why i get the following error:

passing arg 2 of `g_timeout_add' makes pointer from
integer without a cast

  when i write my code as such:

g_timeout_add (1000, time (NULL), G_OBJECT (button));

  and time function is as follows:

gint time( gpointer data )
{
/* some code */
}

  thanks

regards,
aaron



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250



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