Skip to content

Use clearer return value for idle and timeout callbacks.#183811

Merged
robert-ancell merged 1 commit into
flutter:masterfrom
robert-ancell:linux-g-source-return-value
Mar 20, 2026
Merged

Use clearer return value for idle and timeout callbacks.#183811
robert-ancell merged 1 commit into
flutter:masterfrom
robert-ancell:linux-g-source-return-value

Conversation

@robert-ancell

Copy link
Copy Markdown
Contributor

Use G_SOURCE_REMOVE (which is just FALSE) to make clearer what happens at the end of these callbacks.

Use G_SOURCE_REMOVE (which is just FALSE) to make clearer what happens at the
end of these callbacks.
@robert-ancell robert-ancell requested a review from a team as a code owner March 17, 2026 23:27
@github-actions github-actions Bot added engine flutter/engine related. See also e: labels. platform-linux Building on or for Linux specifically a: desktop Running on desktop team-linux Owned by the Linux platform team labels Mar 17, 2026
@robert-ancell robert-ancell requested a review from mattkae March 17, 2026 23:28
@robert-ancell robert-ancell added the CICD Run CI/CD label Mar 17, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies GLib callback functions in fl_binary_messenger_test.cc, fl_task_runner.cc, and fl_view.cc. In these callbacks, the return value FALSE has been replaced with the G_SOURCE_REMOVE constant. This change affects g_idle_add and timeout callbacks, clarifying that the event source should be removed after execution.

@mattkae mattkae left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool 🫘

@robert-ancell robert-ancell added this pull request to the merge queue Mar 20, 2026
Merged via the queue into flutter:master with commit 42f16eb Mar 20, 2026
186 checks passed
@robert-ancell robert-ancell deleted the linux-g-source-return-value branch March 20, 2026 01:52
mboetger pushed a commit to mboetger/flutter that referenced this pull request Mar 26, 2026
)

Use G_SOURCE_REMOVE (which is just FALSE) to make clearer what happens
at the end of these callbacks.
ahmedsameha1 pushed a commit to ahmedsameha1/flutter that referenced this pull request Apr 14, 2026
)

Use G_SOURCE_REMOVE (which is just FALSE) to make clearer what happens
at the end of these callbacks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: desktop Running on desktop CICD Run CI/CD engine flutter/engine related. See also e: labels. platform-linux Building on or for Linux specifically team-linux Owned by the Linux platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants