Skip to content

[GTK4] Return no system tray - #3663

Merged
akurtakov merged 1 commit into
eclipse-platform:masterfrom
akurtakov:gtk4-no-system-tray
Oct 2, 2026
Merged

akurtakov merged 1 commit into
eclipse-platform:masterfrom
akurtakov:gtk4-no-system-tray

Conversation

@akurtakov

Copy link
Copy Markdown
Member

TrayItem is built on GtkStatusIcon, which GTK4 removed, so creating a TrayItem failed with an UnsatisfiedLinkError for gtk_status_icon_new. Return null from Display.getSystemTray() on GTK4, as the API allows when no system tray is available.

Assisted-by: Anthropic Claude Code (claude-opus-5-5)

TrayItem is built on GtkStatusIcon, which GTK4 removed, so creating a
TrayItem failed with an UnsatisfiedLinkError for gtk_status_icon_new.
Return null from Display.getSystemTray() on GTK4, as the API allows
when no system tray is available.

Assisted-by: Anthropic Claude Code (claude-opus-5-5)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The GTK4 behavior needs automated regression coverage.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Prevents GTK4 from invoking the removed GtkStatusIcon API.

Changes:

  • Returns null from Display.getSystemTray() on GTK4.
File Description
Display.java Reports system tray unavailability on GTK4.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Test Results (linux)

  109 files  ±0    109 suites  ±0   15m 17s ⏱️ +8s
4 637 tests ±0  4 402 ✅ ±0  235 💤 ±0  0 ❌ ±0 
3 482 runs  ±0  3 393 ✅ ±0   89 💤 ±0  0 ❌ ±0 

Results for commit 13cd3fa. ± Comparison against base commit 6fd93fa.

@akurtakov
akurtakov merged commit 6631097 into eclipse-platform:master Oct 2, 2026
18 checks passed
@akurtakov
akurtakov deleted the gtk4-no-system-tray branch October 7, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants