From cbf07e1bc3e11d7cce4769782f2acf76e47f6947 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 11 Feb 2009 22:33:55 +0000 Subject: make schedule_run return if it has active jobs to schedule svn path=/trunk/netsurf/; revision=6447 --- gtk/gtk_schedule.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gtk/gtk_schedule.c') diff --git a/gtk/gtk_schedule.c b/gtk/gtk_schedule.c index 4fffd1691..3ef98a40d 100644 --- a/gtk/gtk_schedule.c +++ b/gtk/gtk_schedule.c @@ -107,14 +107,14 @@ schedule(int t, void (*callback)(void *p), void *p) g_timeout_add(msec_timeout, nsgtk_schedule_generic_callback, cb); } -void +bool schedule_run(void) { /* Capture this run of pending callbacks into the list. */ this_run = pending_callbacks; if (this_run == NULL) - return; /* Nothing to do */ + return false; /* Nothing to do */ /* Clear the pending list. */ pending_callbacks = NULL; @@ -129,4 +129,5 @@ schedule_run(void) cb->callback(cb->context); free(cb); } + return true; } -- cgit v1.2.3