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>
This commit is contained in:
Jonas Ådahl 2021-11-08 10:51:19 +01:00
parent c41657bc4f
commit eed6599867

View File

@ -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;
}
}