Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace PopupMenuBuilder with GLib.Menu #2482

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

danirabbit
Copy link
Member

@danirabbit danirabbit commented Sep 10, 2024

Replaces the PopupMenuBuilder class with GLib.Menu. Afaict, all the menus are structured the same with separators in the same spot.

Confirmed with ebassi on mastodon that Gtk.PopoverMenu doesn't currently have a way to style items as destructive. So the alternative here is to make our own PopoverMenu class which tbh I don't think is worth it. He said he's open to it upstream though

Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

Code looks good and menus remain similar to main apart from the destructive styling in one case.

@jeremypw jeremypw merged commit 824e776 into main Sep 11, 2024
4 checks passed
@jeremypw jeremypw deleted the danirabbit/popupmenubuilder-glibmenu branch September 11, 2024 16:29
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.

2 participants