summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtk_schedule.c5
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;
}