Re: Widgets and GThreads.



> 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 ;)

And that's why I never guarantee my code samples. I guess this then:

gboolean thread_button_set_label_BD (ButtonData *data)
{
        gtk_button_set_label (data->button, data->label);
        g_free (data->label);
        g_free (data);
	return FALSE;
}




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