From: Patrick Plattes Date: 2006-12-04T08:18:56+09:00 Subject: Re: Gtk::ProgressBar set_fraction doesn't work Paul Lutus schrieb: > I have not had any success updating progress bars using worker threads and > the Qt GUI library, you may have a different experience with > GTk:ProgressBar. > I found an interesting link: "You are probably doing all the changes within a function without returning control to gtk_main(). This may be the case if you do some lengthy calculation in your code. Most drawing updates are only placed on a queue, which is processed within gtk_main(). You can force the drawing queue to be processed using something like: while (g_main_context_iteration(NULL, FALSE)); inside you're function that changes the widget. What the above snippet does is run all pending events and high priority idle functions, then return immediately (the drawing is done in a high priority idle function)." [http://www.gtk.org/faq/#AEN602] I don't see how i can call g_main_context_iteration in ruby. Any idea? Thanks, Patrick