Skip to content

[Draw2D] Simplify disablement of repaint logic in FigureCanvas - #1674

Merged
ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:draw2d-repaint-canvas
Nov 1, 2026
Merged

ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:draw2d-repaint-canvas

Conversation

@ptziegler

Copy link
Copy Markdown
Contributor

Rather than setting an explicit flag that draws a cached image onto the canvas, it should be sufficient to simply disable paint events via the setRedraw() method.

@ptziegler
ptziegler force-pushed the draw2d-repaint-canvas branch from 0e219f9 to 75940e7 Compare October 28, 2026 20:05
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Test Results

     4 files  ±0       4 suites  ±0   2h 8m 10s ⏱️ - 2m 58s
 7 022 tests ±0   6 992 ✅ ±0  30 💤 ±0  0 ❌ ±0 
23 688 runs  ±0  23 592 ✅ ±0  96 💤 ±0  0 ❌ ±0 

Results for commit 758f0e6. ± Comparison against base commit c20182c.

♻️ This comment has been updated with latest results.

@ptziegler
ptziegler force-pushed the draw2d-repaint-canvas branch 3 times, most recently from 7b70258 to 28e9e70 Compare October 29, 2026 06:37
Rather than setting an explicit flag that draws a cached image onto the
canvas, it should be sufficient to simply prevent the images from being
painted by turning them invisible. Note that it's not possible to
suppress the redraw event by setting `setRedraw(false)` on the
`FigureCanvas`, as a paint event might still be forced by the native
code called in the `OSSupport` implementation. One such example being
`gtk_widget_show_now`.
@ptziegler
ptziegler force-pushed the draw2d-repaint-canvas branch from 28e9e70 to 758f0e6 Compare November 1, 2026 15:36
@ptziegler
ptziegler merged commit 913ed10 into eclipse-windowbuilder:master Nov 1, 2026
8 checks passed
@ptziegler
ptziegler deleted the draw2d-repaint-canvas branch November 1, 2026 17:51
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.

1 participant