Skip to content

[Gtk4] Fix lazily populated menus being empty#3426

Merged
akurtakov merged 1 commit into
eclipse-platform:masterfrom
akurtakov:emptymenu
Jul 8, 2026
Merged

[Gtk4] Fix lazily populated menus being empty#3426
akurtakov merged 1 commit into
eclipse-platform:masterfrom
akurtakov:emptymenu

Conversation

@akurtakov

Copy link
Copy Markdown
Member

The first attempt to wire submenu  SHOW/HIDE  listeners happens too early, at bar map time. On GTK4 those nested  GtkPopoverMenu  children may not be fully reachable yet, so Eclipse never receives  SWT.Show  for the cascade submenu and never runs  menuAboutToShow() . The retry in  gtk_show()  runs after the parent dropdown is actually shown, when GTK has built the widget tree, so the nested submenu popovers can be found and connected.

Fixes #3423

The first attempt to wire submenu  SHOW/HIDE  listeners happens too
early, at bar map time. On GTK4 those nested  GtkPopoverMenu  children
may not be fully reachable yet, so Eclipse never receives  SWT.Show  for
the cascade submenu and never runs  menuAboutToShow() . The retry in
 gtk_show()  runs after the parent dropdown is actually shown, when GTK
has built the widget tree, so the nested submenu popovers can be found
and connected
@akurtakov

akurtakov commented Jul 8, 2026

Copy link
Copy Markdown
Member Author

After the fix:
image
Before is in the issue report.

@akurtakov akurtakov self-assigned this Jul 8, 2026
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Test Results (linux)

  103 files  ±0    103 suites  ±0   14m 44s ⏱️ -13s
4 610 tests ±0  4 384 ✅ ±0  226 💤 ±0  0 ❌ ±0 
3 419 runs  ±0  3 341 ✅ ±0   78 💤 ±0  0 ❌ ±0 

Results for commit b3fd0bd. ± Comparison against base commit 94de5a6.

@akurtakov akurtakov merged commit 28ddc85 into eclipse-platform:master Jul 8, 2026
20 checks passed
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.

[GTK4] empty menus

1 participant