Re: [gtk-list] Re: Q: automatic function on program startup



On Sun, 21 Dec 1997, Kenneth Albanowski wrote:

> On Mon, 22 Dec 1997 csmall@scooter.o.i.net wrote:
> 
> As I mentioned earlier, I've had some success with:
> 
>   do {
> 	gtk_main_iteration();
>   } while (gdk_events_pending());
> 

as gtk_main() recursion has been implemented properly by now,
you should really use recursive gtk_main()/gtk_main_quit() calls.

> as a "yield" function. This programming model might not be the best suited
> for X (or other environments), but it is the simplest possible
> co-processing model, and very convenient for displaying a progress
> indicator.

> Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)
> 

---
ciaoTJ



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