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 re

Gtk-perl: custom cell renderer?

2012-07-05 Thread Xi Yang
Hi everyone! I'm trying to create my customized cell renderer, but occurred some problems. I'm making the app using Perl. The renderer subclass looks like this: some attribute definitions, and a trival render function: package Gdraw2Gtk::CellRe

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" To: David Buchan Cc: gtk-app-devel-list list Sent: Thursday, July 5, 2012 11:32 AM Subject: Re: Another thread/idle/timeout question On 5 July 2012 14:26,

Re: Another thread/idle/timeout question

2012-07-05 Thread jcupitt
On 5 July 2012 14:26, David Buchan 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 new thread i

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

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 ...

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 tha