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

Re: gtk_timeout_add



> 
> 
> > Hi everyone,
> > I am using the gtk_timeout_add inside of gtk main. I use this
> > to update the screen with various time functions. What I am finding
> > is that this times stops updating the screen when other functions
> > are called, even functions which are forked. 
> > The timer calls a callback which updates the screen. Is there a
> > way to assure that this timer updates the screen even if other
> > things are happening? I hope I made myself clear.
> 
> try
> while (gtk_events_pending ())
>     gtk_main_iteration ();
> 
> Iain
> 
Thanks Iain,
Where should I place this? Inside gtk_main or in the called process.
Don

 ---------------------------------------------------------------
Don Epand    --Fairborn Observatory--    Phone: (602)-991-6646
4825 E.Cheryl Drive                      Fax  : (602)-443-8388
Paradise Valley, Az 85253                Email: depand1@home.com   



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