Skip to content

Userland: Port some applications to the GML compiler #25859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

RatcheT2497
Copy link
Contributor

Continuation of #25637 - couldn't get to it in time before it went stale and got closed. Addressed the redundant variable these PRs remove by splitting the change into its own commit.

Original description:
This PR contributes towards #20518
The ported applications are: ThemeEditor, DisplaySettings and ClockSettings.

@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Mar 30, 2025
@RatcheT2497 RatcheT2497 force-pushed the various-gml-compilation-ports branch 2 times, most recently from cd16e2b to 502a0a9 Compare April 1, 2025 17:00
@RatcheT2497 RatcheT2497 force-pushed the various-gml-compilation-ports branch from 502a0a9 to c6c84e7 Compare April 4, 2025 19:15
Copy link

stale bot commented Apr 25, 2025

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

@stale stale bot added the stale label Apr 25, 2025
@stale stale bot removed the stale label Apr 25, 2025
{
auto background_settings_widget = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) BackgroundSettingsWidget(background_settings_changed)));
auto background_settings_widget = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) BackgroundSettingsWidget()));
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you say more why this variable is redundant? Doesn't this undo #13456?

(if it truly is redundant: Now everyone passes false to the 3rd arg of ConnectionFromClient::set_system_theme, so we should remove that arg. But I'm guessing it's maybe needed.)

Copy link
Member

Choose a reason for hiding this comment

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

I had a look into this... and this has been broken for a long time. It broke with ded5ba1, which landed a few weeks after #13456. It then further regressed with #17893, but it had already been broken for a long time by that point 😅 I believe restoring the intended behavior is a two-line fix though (#25915).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apologies for the late reply, didn't know a comment was left. MacDue explains it perfectly, so I won't repeat the explanation.

Sadly I've got no idea how to rebase now, as I don't believe there's any functionality in the GML compiler to pass data like this around between widgets. I'll take a look around for some alternative solutions when I have some time, but if one doesn't come up, should I just stash/remove the DisplaySettings portion of this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 pr-needs-review PR needs review from a maintainer or community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants