Re: gtk-main-iteration -- use and understanding

2016-01-31 Thread Stefan Salewski
On Sun, 2016-01-31 at 09:19 -0500, Robert Schroll wrote: > My first thought would have been to trigger that callback via a > g_idle_add() [1] call Thanks for your responses. I think the idea of using "call gtk_main_iteration() in a while loop with gtk_events_pending()" is OK for now. Later I

gtk-main-iteration -- use and understanding

2016-01-31 Thread Stefan Salewski
https://developer.gnome.org/gtk3/stable/gtk3-General.html#gtk-main-iteration I have some problems to understand and correctly use this function. Last week I wrote a toy chess game from scratch in Nim language, just to get some more experience with Nim and to have one more test and example for my

Re: gtk-main-iteration -- use and understanding

2016-01-31 Thread Stefan Salewski
On Sun, 2016-01-31 at 11:41 +, Chris Vine wrote: > On Sun, 31 Jan 2016 10:45:18 +0100 > Stefan Salewski wrote: > > https://developer.gnome.org/gtk3/stable/gtk3-General.html#gtk-main-iteration > > > > I have some problems to understand and correctly use this function. > >

Re: gtk-main-iteration -- use and understanding

2016-01-31 Thread Robert Schroll
On Sun, Jan 31, 2016 at 8:10 AM, Stefan Salewski wrote: Do you know an not too complicated example where code in a callback is called which may block for about one second? In the long term I may switch to a asyncroneously design, but currently I have no idea how to do that