[mutter/gnome-41] startup-notification: Fix source return value
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-41] startup-notification: Fix source return value
- Date: Wed, 24 Nov 2021 16:06:02 +0000 (UTC)
commit cb3788513b0a83758d833a00402124bdf822598b
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>
(cherry picked from commit eed65998672cb8743e0efa07e3b8ae3d29fc148f)
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]