Re: Widgets and GThreads.



On Mon, 2004-06-07 at 22:03, ext Brian Kerrick Nickel wrote:
> 
> void thread_button_set_label_BD (ButtonData *data)
[...]
> 	g_idle_add (thread_button_set_label_BD, data);

The idle function should return 'gboolean' depending on whether it
should be called again.  By declaring it 'void' the return value is
undefined, depending on optimization flags it might be TRUE or FALSE. 
If TRUE, that will crash...  Better safe than sorry ;)


-- 
Tommi Komulainen <tommi komulainen nokia com>



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