Skip to content

Fix some warnings#2754

Open
lenemter wants to merge 6 commits intomainfrom
lenemter/fix-warnings
Open

Fix some warnings#2754
lenemter wants to merge 6 commits intomainfrom
lenemter/fix-warnings

Conversation

@lenemter
Copy link
Member

@lenemter lenemter commented Feb 7, 2026

No description provided.

@lenemter lenemter requested a review from a team February 7, 2026 10:16
@@ -1766,7 +1757,7 @@ namespace Gala {

#if !HAS_MUTTER48
public override unowned Meta.PluginInfo? plugin_info () {
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove the whole method then?

public Meta.Display display { private get; construct; }

private ComputeShouldHideOnWorkspace? compute_func = null;
private unowned ComputeShouldHideOnWorkspace? compute_func = null;
Copy link
Member

Choose a reason for hiding this comment

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

This (and btw on main too) can lead to crashes if you're not careful so at least a documentation somewhere, probably for the constructor, would be great. Usually we should make it owned in the constructor and then transfer the ownership to this field but that would introduce a memory leak with the way we currently use it. The best thing would of course be if we could make it [CCode (has_target = false)] but we currently use an instance field in the func (but maybe we can drop that?) :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants