Re: Progress bar widget




Erik Mouw <J.A.K.Mouw@its.tudelft.nl> writes:

> On Mon, 06 Sep 1999 08:02:30 -0600, rhfreeman wrote:
> > HELP! This is driving me mad....
> > 
> > I am trying to use a progress bar - but I can't get it to appear when it
> > should! The source has been heavily "based" :) upon the example from
> > testgtk.c.
> > 
> > I call create_progress_bar() and then start loading in a file - but only
> > when the file has finished loading and the main widget is updated does the
> > progress bar appear. I have tried using...
> > 
> > gtk_widget_show_all();
> > gtk_widget_show();
> > gtk_widget_draw();
> > 
> > ...but none of them make it appear when the function is actually called.
> > 
> > Any ideas?
> 
> Yes, it is in the GTK+ FAQ at www.gtk.org . Use
> 
>   while(gtk_events_pending())
>     gtk_main_iteration();

The spiffy new way of doing this is:

 while (g_main_iteration (FALSE));

It might be nice to update the FAQ.

Regards,
                                        Owen



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