Skip to content

Conversation

@danirabbit
Copy link
Member

@danirabbit danirabbit commented Jan 16, 2026

Can be rebase merged

  • Use GLib.Menu instead of Gtk.MenuItem
  • PopoverMenu is sealed in GTK4, so make this a namespace with a static func to return a menu.
  • While we're here, set item sensitivity when the menu is shown, not when it's constructed. This way we can cache a copy of the menu and don't have to construct a new one every time

@danirabbit danirabbit requested a review from a team January 16, 2026 16:46
@danirabbit danirabbit moved this to Needs Review in GTK4 Porting Jan 16, 2026
@danirabbit danirabbit force-pushed the danirabbit/eventmenu-gtk4 branch from a1c2f4c to 0d6d471 Compare January 16, 2026 17:29
@danirabbit danirabbit force-pushed the danirabbit/eventmenu-gtk4 branch 4 times, most recently from e95ba0f to f33917c Compare January 20, 2026 15:52
@danirabbit
Copy link
Member Author

@leolost2605 can I get a re-review please : )

@danirabbit danirabbit force-pushed the danirabbit/eventmenu-gtk4 branch 3 times, most recently from 51a491c to 32d7218 Compare January 26, 2026 19:19
Fix remove item labels

Fix extra whitespace
@danirabbit danirabbit force-pushed the danirabbit/eventmenu-gtk4 branch from 32d7218 to 94dd592 Compare January 26, 2026 20:45
Copy link
Member

@leolost2605 leolost2605 left a comment

Choose a reason for hiding this comment

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

Haven't tested but LGTM with the little comment :)

Make it a namespace

Update EventMenu.vala

Co-authored-by: Leonhard <leo.kargl@proton.me>
@danirabbit danirabbit force-pushed the danirabbit/eventmenu-gtk4 branch from bc86a01 to 8f9df09 Compare January 27, 2026 16:23
@danirabbit danirabbit enabled auto-merge (rebase) January 27, 2026 16:23
@danirabbit danirabbit merged commit 1941d52 into master Jan 27, 2026
6 checks passed
@danirabbit danirabbit deleted the danirabbit/eventmenu-gtk4 branch January 27, 2026 16:24
@github-project-automation github-project-automation bot moved this from Needs Review to Done in GTK4 Porting Jan 27, 2026
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