Re: HELP! gtk_entry_set_text and gtk_label_set_text cannot be called rapidly.



On Mon, 2003-08-11 at 17:22, wangxiaohu wrote:
> I am new to GTK+.
> 
> I wrote a program which updates statistics data every 100 milliseconds.
> 
> I use g_timeout_add() to do this:
> 
> 	timeout_handler = g_timeout_add(100, gSensor_receive, NULL);
> 
> and in gSensor_receive():

Are you grabbing the GDK lock here?  Make sure you're using
GDK_THREADS_ENTER (); and GDK_THREADS_LEAVE ();




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