my $timer = Glib::Timeout->add (100,\&show_refresh); # timer will run until callback returns false