Skip to content

Only add a handler for the brush width's OnValueChanged event once#1460

Merged
cameronwhite merged 1 commit into
masterfrom
fix/brush-width
May 19, 2025
Merged

Only add a handler for the brush width's OnValueChanged event once#1460
cameronwhite merged 1 commit into
masterfrom
fix/brush-width

Conversation

@cameronwhite

Copy link
Copy Markdown
Member

This was being done every time the tool was entered, which is incorrect and will cause the event handler to be run multiple times (after the fixes in gir.core for how closures are implemented).

This also triggered a bug in gir.core from subscribing to the signal multiple times with the exact same delegate.

Bug: #1340

This was being done every time the tool was entered, which is incorrect and will cause the event handler to be run multiple times (after the fixes in gir.core for how closures are implemented).

This also triggered a bug in gir.core from subscribing to the signal multiple times with the exact same delegate.

Bug: #1340

Bug: #1340
@Lehonti

Lehonti commented May 16, 2025

Copy link
Copy Markdown
Contributor

I'm confirming that Pinta crashed often when I tried to adjust the brush width. I didn't report it because I couldn't reproduce it reliably. It's great to see that it's being addressed.

@cameronwhite cameronwhite linked an issue May 19, 2025 that may be closed by this pull request
@cameronwhite cameronwhite merged commit 8e1f542 into master May 19, 2025
cameronwhite added a commit that referenced this pull request May 30, 2025
…1460)

This was being done every time the tool was entered, which is incorrect and will cause the event handler to be run multiple times (after the fixes in gir.core for how closures are implemented).

This also triggered a bug in gir.core from subscribing to the signal multiple times with the exact same delegate.

Bug: #1340
(cherry picked from commit 8e1f542)
cameronwhite added a commit that referenced this pull request Jun 8, 2025
…1460)

This was being done every time the tool was entered, which is incorrect and will cause the event handler to be run multiple times (after the fixes in gir.core for how closures are implemented).

This also triggered a bug in gir.core from subscribing to the signal multiple times with the exact same delegate.

Bug: #1340
(cherry picked from commit 8e1f542)
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.

Consistently reproducible crash

2 participants