in reply to GUI (Gtk2) Programming problem

You want a Glib::Timeout. Installing one causes the main loop to periodically run your callback in the defined intervalls. There are also similar hooks available for callbacks run when the program is idle or when a file handle has activity.

Makeshifts last the longest.