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

Re: That is it...



Tony Preston wrote:

> Well, when I updated the events after each call the progress bars work... I
> have three of them, the code that works is:
>
>    gtk_progress_set_percentages(...)
>    while( gtk_events_pending() ) gtk_main_interation();
>    gtk_progress_set_percentages(...)
>    while( gtk_events_pending() ) gtk_main_interation();
>    gtk_progress_set_percentages(...)
>    while( gtk_events_pending() ) gtk_main_interation();
>
>    If I do:
>
>    gtk_progress_set_percentages(...)
>    gtk_progress_set_percentages(...)
>    gtk_progress_set_percentages(...)
>    while( gtk_events_pending() ) gtk_main_interation();
>
>   Which seems more efficient, it hangs in the while loop.  Anyone know
> why this is so?  Should it hang?  Is it a bug?
>

I think that all GTK conception suppose make all caling via timers.
i.e:

int time_for_refresh(void *a) {
    gtk_progress_set_percentages(...);
   return 1;
};

gtk_timeout_add (2000, time_for_refresh , NULL);


--
Downloader for X !
Get your copy right now at
http://www.krasu.ru/soft/chuchelo





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