diff options
Diffstat (limited to 'gio/tests/gmenumodel.c')
-rw-r--r-- | gio/tests/gmenumodel.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gio/tests/gmenumodel.c b/gio/tests/gmenumodel.c index fb52b4c6d..d75f36a29 100644 --- a/gio/tests/gmenumodel.c +++ b/gio/tests/gmenumodel.c @@ -7,12 +7,10 @@ #include "glib/glib-private.h" -static gboolean +static void time_out (gpointer unused G_GNUC_UNUSED) { g_error ("Timed out"); - /* not reached */ - return FALSE; } static guint @@ -22,7 +20,7 @@ add_timeout (guint seconds) /* Safety-catch against the main loop having blocked */ alarm (seconds + 5); #endif - return g_timeout_add_seconds (seconds, time_out, NULL); + return g_timeout_add_seconds_once (seconds, time_out, NULL); } static void |