Re: HELP! gtk_entry_set_text and gtk_label_set_text cannot be called rapidly.
- From: Colin Walters <walters verbum org>
- To: wangxiaohu <skybird 163 com>
- Cc: desktop-devel-list gnome org
- Subject: Re: HELP! gtk_entry_set_text and gtk_label_set_text cannot be called rapidly.
- Date: 11 Aug 2003 20:45:25 -0400
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]