[mutter] startup-notification: Fix source return value
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] startup-notification: Fix source return value
- Date: Wed, 24 Nov 2021 15:03:22 +0000 (UTC)
commit eed65998672cb8743e0efa07e3b8ae3d29fc148f
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Mon Nov 8 10:51:19 2021 +0100
startup-notification: Fix source return value
Use G_SOURCE_CONTINUE and G_SOURCE_REMOVE intead of TRUE and FALSE.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2081>
src/core/startup-notification.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/core/startup-notification.c b/src/core/startup-notification.c
index 630f2ff0da..1cc1e803d7 100644
--- a/src/core/startup-notification.c
+++ b/src/core/startup-notification.c
@@ -508,13 +508,12 @@ startup_sequence_timeout (void *data)
if (sn->startup_sequences != NULL)
{
- return TRUE;
+ return G_SOURCE_CONTINUE;
}
else
{
- /* remove */
sn->startup_sequence_timeout_id = 0;
- return FALSE;
+ return G_SOURCE_REMOVE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]