Re: [gtk-list] RE: GtkProgressBar && RE: updating a progress bar in a loop





> On 05-Mar-98 Sergei Naumov wrote:
> > I am trying to use progress bar when doing a MySQL query. The
> > question I
> > have is how do I update the state of the progress bar if everything
> > is
> > happening INSIDE mysql_query()?

> Drawing updates usually only happen when you are in gtk_main. You can
> force them, however using something like:
> 
> while (gtk_events_pending())
>         gtk_main_iteration();
> 
> inside you're respective functions that change the progress bar.

Well, as far as I understand, it does not help me with mysql queries. Or
I might be dumb if I do not understand what is written there. :-(

	Sergei




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