From: Massimiliano Mirra Date: 2001-11-27T09:10:54+09:00 Subject: [ruby-talk:26576] [GTK] No refresh until mouse on window In the following example, some text is inserted in a Gtk::Text widget from outside. However, the widget content is not refreshed until the mouse pointer passes on its window. Is there any way to force instant refresh? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #!/usr/bin/env ruby require 'gtk' include Gtk window = Window.new(WINDOW_TOPLEVEL) window.signal_connect('delete_event') { exit } text = Text.new window.add(text) text.show window.show Thread.new { Gtk.main } while line = gets text.insert_text("hello", 0) if line.chomp == 'insert' end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Massimiliano