Re: GUI window creation from a thread



On 1/8/07, Preeti Joshi <preetijoshi79 gmail com> wrote:
Is it not possible to create a GUI window from a thread? I created a thread

There are several FAQs about this:

http://www.gtk.org/faq/#AEN482

And some others, read down a bit.

In my opinion, it's best not to do this, but instead to only call gtk
from your main thread. If you need to start a worker thread to perform
some time-consuming operation, use g_timeout_add() from the worker to
send messages to the main thread.

John



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