We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
The below is no longer relevant, as the code has been incorporated in GirFFI.
Let the GLib/GTK systems set the idle loops for a snappy, responsive UI:
GLib.idle_add GLib::PRIORITY_DEFAULT_IDLE, Proc.new{Thread.pass; true}, nil, nil
Without this line before GTK.main, ^C will not halt the program, and other Thread.new{...} will never run.
GTK.main
^C
Thread.new{...}