Re: update a progress bar from a thread

2006-05-16 Thread Iago Rubio
You must use gdk_threads_enter and gdk_threads_leave surrounding any UI change on the thread, to acquire the gdk global mutex. On Mon, 2006-05-15 at 13:50 +0200, nik600 wrote: hi i upgrade a progress bar from the body of a thread with the following code: void *body_monitor_avanzamento(void

update a progress bar from a thread

2006-05-15 Thread nik600
hi i upgrade a progress bar from the body of a thread with the following code: void *body_monitor_avanzamento(void *args){ monitor_avanzamento *m=(monitor_avanzamento *)args; float avanzamento=0.0; while(avanzamento1){ avanzamento=(float)*(m-db-counter_shared)/(float)m-tot_pacchetti;