[DRE-maint] Bug#502262: libgtk2-ruby1.8: Gtk UI rendering hangs when another thread is working

Tobias Grimm tobias.grimm at e-tobi.net
Thu Oct 22 00:42:10 UTC 2009


Just encountered the same problem.

I think this bug is solved with 0.19.3-1. I've tested Johans sample code
and this code of mine:

---
require 'gtk2'
require 'monitor'


# Create UI
button = Gtk::Button.new("Hello World")
window = Gtk::Window.new

window.signal_connect("destroy") {
  Gtk.main_quit
}

# Lay out UI
window.border_width = 10
window.add(button)
window.show_all

Thread.new {
  sleep(5)
  puts "yupp"
}

Gtk.main
---

With 0.19.1 any background thread blocks the Gtk main thread. With 0.19.3
this works just fine.

AFAIK this problem was already solved in 0.19.2. The changelog even refers
to this Debian bug. See:

http://ruby-gnome2.sourceforge.jp/hiki.cgi?News_20090924_1#Ruby%2FGLib2

So please consider closing this bug.

Tobias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20091022/c3abe41e/attachment.pgp>


More information about the Pkg-ruby-extras-maintainers mailing list