From: "Zachary P. Landau" Date: 2004-08-30T10:21:17+09:00 Subject: Re: Blocking Problem --ALfTUftag+2gvp1h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Hi, >=20 > Since you are using Gtk, maybe the Gdk::Input.add method > could help you. You can invoke it like this: >=20 > Gdk::Input.add(my_io.to_i, Gdk::Input::Condition::READ) do > #block to execute when data is ready in the io > end >=20 > This is the version for gtk2, the gtk (1.2) version is a > little different. > You must have a Gtk.main loop for this to work. > I hope this is helpful. Well, unfortunately I had the same problem. But thanks for telling me about Gdk::Input, once I get this working I'll move to that method. It seems to be a little cleaner than what I was doing. -- Zachary P. Landau GPG: gpg --recv-key 0x24E5AD99 | http://kapheine.hypa.net/kapheine.asc --ALfTUftag+2gvp1h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBMoDhCwWyMCTlrZkRAkmhAJ9lwylhYHWgY0esCVVGbjPWvYTefwCeI44x DbrcHjIzpX93oGNx5G6q57w= =eNat -----END PGP SIGNATURE----- --ALfTUftag+2gvp1h--