Re: Wait cursor animation does not work properly





On Mon, Sep 4, 2017 at 3:17 AM, Stefan Salewski <mail ssalewski de> wrote:
​My chess engine takes only a few seconds to calculate
the next move, so creating an own thread is some overkill.

​Incorrect thinking. ​
 
What I need:
User has done his move, so update display, indicate that computer is
"thinking" for a few seconds, and then update display again. I think
that should be possible with g_idle_add(). Instead of the busy pointer
I may set a message to the window title.

Later I may consider indeed using a separate thread

​Do it now.

Chris explained the rest.



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