-
-
Notifications
You must be signed in to change notification settings - Fork 217
Create context menus from GMenuModel #1305
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
Conversation
|
From a quick glance I don't see any drawback to this. Are there any? |
|
@elelay Did you look at the channel context menu? The icons are indented, and their text doesn't align with items that lack icons. |
Indeed. On the other hand icons are not visible for me with the master branch. |
|
Oh right, gtk3 defaults to |
|
Two releases have now been made after this PR and #1293 were proposed. Merging the context menu changes to the GMenuModel based menus used in the adaptive branch is starting to feel like useless busywork. Could we move the master branch to GMenuModels, either by merging this or #1293? I can bring this PR up to date and finish the implementation if there's a consensus on merging this. For reference, here are screenshots of how the channel context menu before and after: Before: After: |
|
ok from me but I defer to @auouymous decision |
|
I don't like the indented icons. Can this use the verb-icons like popovers? We could remove the indented icons and add verb-icons at the top for the most common actions. The popovers lack any of the flaws that normal context menus have but @elelay didn't like them (#1293 (comment)) so they are out. |
|
Ok, I dove into GTK docs and sources and here's what I found:
So, with GMenuModels the context menu will either be a GtkMenu with indented icons, or a GtkPopover with icons only in the horizontal button rows. I'm fine with either, but would also prefer the popovers. |
|
Thanks for looking into it. @auouymous @tpikonen you are both convinced that popover is better so I change my position: let's go for popovers. |
|
Is there an ETA on this ? |


A remix of / alternative to #1293. Add action definitions for context menu items and create context menus (just for channels, for now) from
menus.ui.