From a3d02ad565c7697efc7474d52bd17bec27b2ced0 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Thu, 26 Oct 2023 11:01:42 +0300 Subject: [PATCH] gmain: Correct g_source_get_ready_time () doc Mention that ready time being equal to the current time means the source will fire immediately. Related to https://gitlab.gnome.org/GNOME/glib/-/issues/3148 Signed-off-by: Sergey Bugaev --- glib/gmain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/gmain.c b/glib/gmain.c index b9a68cce8..f6b251f31 100644 --- a/glib/gmain.c +++ b/glib/gmain.c @@ -1952,8 +1952,8 @@ g_source_set_ready_time (GSource *source, * Gets the "ready time" of @source, as set by * g_source_set_ready_time(). * - * Any time before the current monotonic time (including 0) is an - * indication that the source will fire immediately. + * Any time before or equal to the current monotonic time (including 0) + * is an indication that the source will fire immediately. * * Returns: the monotonic ready time, -1 for "never" **/