Re: aplication to yield for processing of events



On Wed, 08 Dec 2004 11:48:41 -0800, Konstantin L Kouptsov <klk206 panix com> wrote:


In my Gtkmm-2.0 application I have a very busy loop that performs calculations and that takes quite a while. In the meantime, I would like my program to be able to process events like resizing, redraw, button presses etc. What is the way to do that (I don't seem to find anything in the docs).

for(...)
{
	read data from file
	do calculation

	yield to process events <-???????????????????
}
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


 for(...)
 {
 	read data from file
 	do calculation

 	while(Gtk::Main::events_pending())
		Gtk::Main::iteration();
 }





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