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

Re: gtk threads ?



will it possible to use pthreads to update some parts
of the status bar fileds directly with the help of
(GdkWidget *) status_bar.or do i need to ask Gui
module to do this. or any problem using pthreads with
gui.
1)I need to update time in the status bar.
2)I need to display some alarm  in the status bar if
some data comes in serial port.
                                 -manu
 

--- Ian Bell <ian@ruffrecords.worldonline.co.uk>
wrote: > On Wednesday 17 Sep 2003 5:31 am, you wrote:
> >   does not it is waste of time everytime to
> distrub
> > GUI thread to update status bar.
> 
> The GUI thread is event driven.  If there are no
> events it has nothing to do 
> so you are not wasting its time.  When you want to
> update the status bar you 
> need to effectively invoke an event in the GUI to do
> this.
> 
> Assume that i have 2
> > threads, one updates time on the status bar &
> another
> > wants to display somthing after certain time
> interval.
> >    
> 
> Each of these 'events' needs to signal the GUI to
> update the appropriate part 
> of the status bar.  You should NOT directly man
> ipulate one part of a thread 
> from another.
> 
> Ian
>  

________________________________________________________________________
Yahoo! India Matrimony: Find your partner online.
Go to http://yahoo.shaadi.com



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