Re: timer



> is there any way of running a callback every 2 secons???

gtk_timeout_add (2000, callback_function, NULL);

gint callback_function (gpointer data)
{
	...
	
	return TRUE;	// continue timer
	or
	return FALSE;	// stop timer
}





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