From: Kouhei Sutou Date: 2006-12-04T09:47:11+09:00 Subject: Re: Gtk::ProgressBar set_fraction doesn't work Hi, 2006/12/4, Patrick Plattes : > 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. > > > > "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. > > I don't see how i can call g_main_context_iteration in ruby. Any idea? while Gtk.events_pending? Gtk.main_iteration end Thanks, -- kou