From 32aae79db558ec6d18577a605254b5ebf9800960 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 23 Mar 2017 15:07:49 +0000 Subject: [PATCH] gmain: Document that set_ready_time() is safe on destroyed GSources Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=778049 --- glib/gmain.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glib/gmain.c b/glib/gmain.c index 7d23d7ca3..a503431a0 100644 --- a/glib/gmain.c +++ b/glib/gmain.c @@ -1809,6 +1809,9 @@ g_source_get_priority (GSource *source) * for both sources is reached during the same main context iteration * then the order of dispatch is undefined. * + * It is a no-op to call this function on a #GSource which has already been + * destroyed with g_source_destroy(). + * * This API is only intended to be used by implementations of #GSource. * Do not call this API on a #GSource that you did not create. *