Re: Problem with gtk_label_set_text




Please don't top-post.

On Thu, Jun 28, 2007 at 02:38:01PM +0530, Divya yadav wrote:
Forgot to mention again its a multithreaded program

It is not possible to randomly call Gtk+ function from
multiple threads.  Either queue all updates to be performed
in the main thread (i.e. the one running gtk_main()) for
instance via g_idle_add(), or add locking with
gdk_gthreads_enter(), gdk_gthreads_leave() -- and note the
latter will still not allow you to call Gtk+ function from
multiple threads on MS Windows.

For details, see the mailing list archives, this topic is
discussed twice a week.

Yeti

--
http://gwyddion.net/



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