Skip to content

fix(linux-workspace): make the tab menu items work and add Close All Tabs to the tab overview - #3930

Merged
datlechin merged 4 commits into
TableProApp:mainfrom
sedax90:fix/linux-tab-menu-actions
Oct 31, 2026
Merged

datlechin merged 4 commits into
TableProApp:mainfrom
sedax90:fix/linux-tab-menu-actions

Conversation

@sedax90

@sedax90 sedax90 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The tab menu's items were always dimmed: libadwaita parents the menu's popover to the tab bar and the tab overview, and the tab actions sat on the tab view, an ancestor of neither. They now live on the shell, above all three, as the libadwaita demo puts them on its window.
  • Close Other Tabs and Close Tabs After This One dim when they would close nothing.
  • Close All Tabs is in the tab overview's menu, beside Reopen Closed Tab, as GNOME Web has it. The GNOME HIG keeps a tab's menu to that tab's items. It has no shortcut and is off with no tab open.
  • Close All Tabs closes the others, then the selected tab, each through its session's prompts, so a tab with unsaved changes asks first.

Test plan

  • the_tab_menu_reaches_its_actions_from_the_bar_and_the_overview reaches every tab.* action from the tab box and the tab grid that parent the menu; fails on main.
  • the_tab_menu_dims_what_would_close_nothing covers one tab, a middle tab and the last tab.
  • close_all_tabs_closes_the_tabs_of_every_session, close_all_tabs_is_in_the_overview_menu_and_off_with_no_tab and close_all_tabs_asks_before_closing_unsaved_work cover Close All Tabs.
  • No screenshots: no Linux display is available here. Build, tests and lint run on CI.

sedax90 and others added 4 commits October 31, 2026 08:34
…Tabs

The tab action group sat on the AdwTabView, but the menu's popover
belongs to the tab bar and the overview, siblings of the view, so every
item showed as insensitive. The group now lives on the shell. The menu
gains Close All Tabs and dims items that would close nothing, as on macOS.
@datlechin datlechin changed the title fix(linux-workspace): make the tab menu items work and add Close All Tabs fix(linux-workspace): make the tab menu items work and add Close All Tabs to the tab overview Oct 31, 2026
@datlechin
datlechin merged commit 9949acd into TableProApp:main Oct 31, 2026
37 of 38 checks passed
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