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

Use Gtk.Menu #770

Merged
merged 2 commits into from
Aug 9, 2024
Merged

Conversation

danirabbit
Copy link
Member

@danirabbit danirabbit commented Aug 8, 2024

Needs some CSS here to fix stylesheet bugs, but this will show accelerators. Gotta make the section labels null or we get a weird bug with separator height being forced to match an empty label

@danirabbit danirabbit requested a review from jeremypw August 8, 2024 22:07
@jeremypw
Copy link
Collaborator

jeremypw commented Aug 9, 2024

I see you have used Gtk.Menu instead of GLib.Menu to get the accel labels back. This will have to be changed for Gtk4 as Gtk.Menu does not exist there but hopefully by then there will be a way of showing accel labels in GLib.Menu?

@jeremypw jeremypw merged commit 2c40905 into jeremypw/glib-context-menu Aug 9, 2024
4 checks passed
@jeremypw jeremypw deleted the danirabbit/glib-context-menu branch August 9, 2024 15:31
@danirabbit
Copy link
Member Author

It still uses Glib.Menu for the model it just uses GTK.Menu instead of GTK.PopoverMenu. The implementation of PopoverMenu in GTK4 is much better and does show accels

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