Re: Splash Screens in GTK

On Sat, 3 Apr 1999, Jeff Evarts wrote:
>         As far as I can tell, the best (only?) way to get the
> expose events served is to call gtk_main, which doesn't have
> a "run until X queue is empty" mode, so you're stuck with putting
> the rest of your initialization into an idle function.

You can run until the queue is empty like this:

while (gtk_events_pending())

Just throw up your splash screen, then do the above periodically while
your application is initializing itself.

This is the lazy way - Jeff's solution is cleaner and nicer and all-around
better, except that it's harder to implement. :-)


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