On Mon, May 28, 2001 at 11:12:11AM +0200, Erik BéČfors wrote:
> On 28 May 2001 18:05:51 +0900, Patrik Sundberg wrote:
> > hi,
> > 
> > I have an application using ruby-gtk which wants to update a CList every X
> > seconds. I have found no good way of doing this, using a thread causes crappy
> > updates since the gtk mainloop and the interpreter thread scheduler doesn't
> > share very nicely. Do anyone have a solution for this problem?
> > 
> > To me it seems like either the thread issue must somehow be resolved or some
> > interface to the glib mainloop, timers, io events and possibly some other
> > parts need to be designed. Is anyone working on this? Any thoughts on this
> > topic?
> > 
> > (please keep me CC'ed since i am not subscribed to the list)
> > 
> 
> Without being 100% sure about this, it do think you can/should use
> Gtk.idle_add for that.

thank you for the quick reply. I had missed the Gtk.* methods (not browsing
the singleton methods..). So from a quick look it seems like the idle_* and
timeout_* solves my problem. What method would you use to handle IO events
(e.g a "select" in a gtk program)?

-- 
-----------------------------------------------------------.
Patrik Sundberg  email: ps / raditex.se || ps / radiac.mine.nu |
                 Phone: +46 13 178567 || +46 707 602240    |
.---> UNIX consultant                                      |
|-----> Applied Physics and Electrical Engineering student |
`----------------------------------------------------------'