Re: Threads and idle functions

2012-07-02 Thread jcupitt
Hi Igor, On Tuesday, 3 July 2012, Igor Chetverovod wrote > > Hi David, > probably you should use macros: > gdk_threads_enter () > gdk_threads_leave (). Those macros were used to lock the main gdk thread in earlier versions of gtk if you wanted to call gtk_ functions from many threads. They are n

Re: Threads and idle functions

2012-07-02 Thread Igor Chetverovod
Hi David, probably you should use macros: gdk_threads_enter () gdk_threads_leave (). Best regards, Igor 2012/7/3, David Buchan : > My understanding is that child threads must never alter the UI in any way. > > If I have a program which spawns a child thread to download some data and I > want to

Re: Threads and idle functions

2012-07-02 Thread David Buchan
yep. Seems to be working. Thanks! Dave From: James Morris To: David Buchan Sent: Monday, July 2, 2012 9:10 PM Subject: Re: Threads and idle functions On 3 July 2012 01:50, David Buchan wrote: > My understanding is that child threads must never alter

Re: Threads and idle functions

2012-07-02 Thread James Morris
On 3 July 2012 02:10, James Morris wrote: > (sorry forgot list) > On 3 July 2012 01:50, David Buchan wrote: >> My understanding is that child threads must never alter the UI in any way. >> >> If I have a program which spawns a child thread to download some data and I >> want to be able to have a

Re: Threads and idle functions

2012-07-02 Thread James Morris
(sorry forgot list) On 3 July 2012 01:50, David Buchan wrote: > My understanding is that child threads must never alter the UI in any way. > > If I have a program which spawns a child thread to download some data and I > want to be able to have a dialog pop up should an error occur, is it correct