expose the timeout function of gtk's event loop