Re: [gtk-list] synchronous exposure (how to do?)



In message <369B03E7.938DEE44@wtal.de>, Christof Petig writes:
>Hello,
>
>Our program does a hard job at fetching a lot of data from a database at
>load time. So a progress bar would be the right thing to show. But since
>the expose event is handled at idle time (is this right?) the progress
>bar will not be drawn untill everything is loaded.
>
>show() and realize() are not enough! gtk_events_pending() displays an
>empty window ...

run this loop periodically:

while( gtk_Events_pending() )
   gtk_main_iteration();


--
James Bailie

http://www.wwdc.com/~jbailie



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