-
-
Notifications
You must be signed in to change notification settings - Fork 102
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 GLib.MenuModel for context menu #769
Conversation
src/Widgets/TerminalWidget.vala
Outdated
context_popover.show_all (); | ||
context_popover.popup (); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think show_all
and popup
are redundant here. I'm not sure show_all
is necessary when using a menu from a model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not work in Gtk3 without these. Revisit in Gtk4
* Use Gtk.Menu * section labels are nullable
This is similar to #751 but based on latest master and more closely following current code to reduce diff (a little). Code cleanup can be done in separate PR.
Also added custom "accel" menu attribute to the items. This does not seem to be working with the current version - maybe it ill work in Gtk4?