Skip to content

[Gtk4] Fix ToolItem image size by using GtkPicture instead of GtkImage#3328

Open
akurtakov wants to merge 1 commit into
eclipse-platform:masterfrom
akurtakov:toosmallimage
Open

[Gtk4] Fix ToolItem image size by using GtkPicture instead of GtkImage#3328
akurtakov wants to merge 1 commit into
eclipse-platform:masterfrom
akurtakov:toosmallimage

Conversation

@akurtakov
Copy link
Copy Markdown
Member

GTK4 works in logical points while Cairo works in pixels, causing images to appear smaller at HiDPI scaling. Using GtkPicture (instead of GtkImage)
correctly maps the pixbuf to the right display size.

This is the same fix applied to Button
(#3323 ) and Label
(#2766 ) for the same reason.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 26, 2026

Test Results (linux)

   90 files   -  2     90 suites   - 2   14m 41s ⏱️ +6s
4 598 tests ± 0  4 373 ✅ ± 0  224 💤 ±0  1 ❌ ±0 
3 314 runs   - 36  3 241 ✅  - 35   71 💤  - 2  2 ❌ +1 

For more details on these failures, see this check.

Results for commit eb3a063. ± Comparison against base commit 3bde9ff.

♻️ This comment has been updated with latest results.

Copy link
Copy Markdown
Contributor

@jonahgraham jonahgraham left a comment

Choose a reason for hiding this comment

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

Approved (for when master reopens)

@akurtakov akurtakov force-pushed the toosmallimage branch 3 times, most recently from 848030a to 376e620 Compare May 30, 2026 09:21
GTK4 works in logical points while Cairo works in pixels, causing images
to appear smaller at HiDPI scaling. Using GtkPicture (instead of
GtkImage)
correctly maps the pixbuf to the right display size.

This is the same fix applied to Button
(eclipse-platform#3323 )
and Label
(eclipse-platform#2766
) for the same reason.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants