Another thread/idle/timeout question

2012-07-05 Thread David Buchan
Is there a way to have a (non-main iteration) thread issue a signal when it ends? I start up a timeout and an idle function when I spawn a new thread. I want the main iteration to stop the timeout and idle function as soon as the new thread is finished and disappears. It seems to me that if

GTK 3.0 .....Menu=Window-Popup

2012-07-05 Thread Mariano Gaudix
Hello ...Excuse me for my question I am creating a combo-box with scrollbar with GTK 3.0 and VALA (gtk) . .as the COMBO-BOX in LibreOffice that have in the list of FONTS .. I have been able to create something like a MENU

Re: Another thread/idle/timeout question

2012-07-05 Thread David Buchan
Perhaps the easiest thing is just to have the new thread set a flag (which the main iteration has access to) and then have the timeout and idle functions check the flag and return FALSE is it is set or return TRUE if not set.  I still think signals would be more elegant, but maybe this is the

Re: Another thread/idle/timeout question

2012-07-05 Thread jcupitt
On 5 July 2012 14:26, David Buchan pdbuc...@yahoo.com wrote: Is there a way to have a (non-main iteration) thread issue a signal when it ends? I start up a timeout and an idle function when I spawn a new thread. I want the main iteration to stop the timeout and idle function as soon as the

Re: Another thread/idle/timeout question

2012-07-05 Thread David Buchan
Aaaah.. I see. Yes, that's exactly what I meant. That's great! Thanks. From: jcup...@gmail.com jcup...@gmail.com To: David Buchan pdbuc...@yahoo.com Cc: gtk-app-devel-list list gtk-app-devel-list@gnome.org Sent: Thursday, July 5, 2012 11:32 AM Subject: Re:

yet another thread question

2012-07-05 Thread David Buchan
When the user presses a button, an idle function is begun to watch a flag which will tell it a message has been left in a string for it by a worker thread. The worker thread is then started. It will produce results to be displayed in a textview by the idle function. When the worker thread has