Re: [gtk-list] gtkprogressbar update problems




On Wed, 17 Mar 1999, scherfa wrote:
> 
> progress_adj=gtk_progress_get_value (GTK_PROGRESS (progressbar))+1;
>     if (progress_adj > adj->upper)
>       progress_adj = adj->lower; 
>       printf("value %f\n",progress_adj);
>       gtk_progress_set_value (GTK_PROGRESS (progressbar), progress_adj);

  Add here:
   while (gtk_events_pending())
	gtk_main_iteration();

> gtk_widget_show(progressbar);
> 

This shouldn't be in the loop, it should be before it.

Havoc 
(the human FAQ-o-matic)



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