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

gtk: add context menu to libadwaita tab headers #2529

Closed

Conversation

jcollie
Copy link
Member

@jcollie jcollie commented Oct 29, 2024

Re-uses the context menu from the main app.

@mitchellh
Copy link
Contributor

Thanks, setting up the machinery is helpful, but I don't think reusing the surface context menu is particularly useful and I can see it being confusing with splits (since its unclear if you click an unfocused tab what happens when you say... split-right).

I think if you're interested, please go ahead and make a dedicated tab context menu and we can start with maybe just "Close Tab" as an option. Going forward there are a number of things we can then add in there.

@jcollie
Copy link
Member Author

jcollie commented Nov 2, 2024

OK, working on this. Hopefully have it done later today, but I introduced a crash somehow so I need to track that down first.

@jcollie jcollie force-pushed the gtk-adw-tab-header-context-menu branch from 76207f3 to 6c97ee8 Compare November 2, 2024 18:40
@jcollie jcollie force-pushed the gtk-adw-tab-header-context-menu branch from 6c97ee8 to 3e84950 Compare November 10, 2024 18:07
The preferred method to enable/disable menu options is to enable/disable
the associated actions.
Put GTK and libadwaita notebook implementations into separate structs/
files for clarity.
@jcollie
Copy link
Member Author

jcollie commented Dec 27, 2024

closing, will resubmit once notebook refactor is merged

@jcollie jcollie closed this Dec 27, 2024
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