Skip to content

FIX: StatusPanel, show current-print thumbnail on wxGTK#10348

Open
ClusterM wants to merge 1 commit intobambulab:masterfrom
ClusterM:bitmap_fix
Open

FIX: StatusPanel, show current-print thumbnail on wxGTK#10348
ClusterM wants to merge 1 commit intobambulab:masterfrom
ClusterM:bitmap_fix

Conversation

@ClusterM
Copy link
Copy Markdown

On Linux (wxGTK) wxStaticBitmap is a native GtkImage wrapper and does
not dispatch wxEVT_PAINT to Bind()'d handlers. As a result, the
PrintingTaskPanel::paint() override that wxMSW/wxOSX rely on to
composite m_thumbnail_bmp_display over the panel is never invoked, and
set_thumbnail_img() has no visible effect - the placeholder sent to
the widget at construction time stays on screen for the whole session.

Push the bitmap through the widget's native SetBitmap() path in
addition to the existing Refresh() so the new image shows up on all
platforms regardless of whether wxEVT_PAINT fires.

@ClusterM ClusterM marked this pull request as draft May 2, 2026 20:35
On Linux (wxGTK) wxStaticBitmap is a native GtkImage wrapper and does
not dispatch wxEVT_PAINT to Bind()'d handlers. As a result, the
PrintingTaskPanel::paint() override that wxMSW/wxOSX rely on to
composite m_thumbnail_bmp_display over the panel is never invoked, and
set_thumbnail_img() has no visible effect - the placeholder sent to
the widget at construction time stays on screen for the whole session.

Push the bitmap through the widget's native SetBitmap() path in
addition to the existing Refresh() so the new image shows up on all
platforms regardless of whether wxEVT_PAINT fires.
@ClusterM ClusterM marked this pull request as ready for review May 2, 2026 20:41
@ClusterM
Copy link
Copy Markdown
Author

ClusterM commented May 2, 2026

Rebased/fixed.

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