diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-02-11 22:33:55 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-02-11 22:33:55 +0000 |
commit | cbf07e1bc3e11d7cce4769782f2acf76e47f6947 (patch) | |
tree | ee2324cd5f48de505ab2a9a172ae984ace0f653b /gtk/gtk_schedule.c | |
parent | 5060882795b3534bca9b20dc11476027f15f1f6f (diff) | |
download | netsurf-cbf07e1bc3e11d7cce4769782f2acf76e47f6947.tar.gz netsurf-cbf07e1bc3e11d7cce4769782f2acf76e47f6947.tar.bz2 |
make schedule_run return if it has active jobs to schedule
svn path=/trunk/netsurf/; revision=6447
Diffstat (limited to 'gtk/gtk_schedule.c')
-rw-r--r-- | gtk/gtk_schedule.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |