Use g_timeout_add_seconds() for multi-second timeouts

Based on a patch by: Matthias Clasen <mclasen@redhat.com>