Re: Another question about foreach loops and gtk
- From: "Jeffrey Ratcliffe" <jeffrey ratcliffe gmail com>
- To: "Mike Martin" <redtux1 googlemail com>
- Cc: gtk-perl-list gnome org
- Subject: Re: Another question about foreach loops and gtk
- Date: Tue, 24 Jun 2008 18:00:32 +0200
2008/6/24 Mike Martin <redtux1 googlemail com>:
I have a long-running foreach loop which I want to give feedback through the GUI
The GUI is only updated in idle cycles on the main loop. Therefore,
you should consider doing things in idle cycles (see Glib::Idle), or
use Gtk2->main_iteration() while (Gtk2->events_pending);
Regards
Jeff
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]