Repository navigation
fix(icons): wrap Left from a row start to the previous row - #2044
Merged
Merged
Conversation
Only a section's first tile is the pane's left edge in Icons, so Left at any other row start lets GTK wrap backwards instead of entering the sidebar or, with arrows kept in the file list, being swallowed. The portal chooser's sidebar exit uses the same rule. Closes #2043
l0gicgate
added a commit
to adamcbrewer/strata
that referenced
this pull request
Nov 3, 2026
The test pressed Down 100 ms after switching to Icons and assumed the grid already had several columns. On a loaded CI runner it had not been laid out yet, so Down reached the second tile and the test failed; this also failed lgse#2044's own CI. Wait until Down moves a whole row instead.
l0gicgate
added a commit
to adamcbrewer/strata
that referenced
this pull request
Nov 3, 2026
GTK 4.22, which CI uses, lays the fixture's tiles out about 450 px wide in a 460 px grid, one per row, where GTK 4.24 fits two. Requiring Down to pass the second tile therefore always failed on CI. Wait for the tiles to be laid out, then use whichever row start Down reaches; with one column Left from the second tile still must not enter the sidebar, and the test still fails on both versions without lgse#2044's fix.
This was referenced Nov 3, 2026
l0gicgate
added a commit
that referenced
this pull request
Nov 3, 2026
* feat(sort): add sorting flyouts and list sort indicators Add Extension, Created and Unsorted sorting with independent name comparison settings and saved folder/default choices. Implement design option 3 from #1652, with right-aligned submenu values and List indicators for sorts that visible column headers cannot explain. Refs #1652 * fix(sort): align submenu rows and move list sort control Keep submenu titles aligned with the main choices and reduce the visual weight of their selected values. Place the List sort control before Refresh with a gap. Refs #1652 * fix(sort): align default sort actions with other menu rows Remove the empty indicator slot from plain sort actions as well as choices and submenu titles. Refs #1652 * fix(sort): toggle the active menu sort off when selected again Switch to Unsorted when the checked sort field is selected again, so both primary and flyout choices can be turned off. Refs #1652 * fix(sort): use apply as default sort wording Update the action label and its translations in all supported languages. Refs #1652 * fix(sort): keep menus open while changing sort options Allow several choices before dismissing the menu with Escape or an outside click. Keep checkmarks, submenu summaries and default actions current while the menu is open. Refs #1652 * fix(sort): sync open sort menus without a browser observer per pane Each sort menu build registered a Browser observer, and Browser keeps observers until its tab closes, so every navigation and view rebuild added another closure that ran on every browser event for the life of the tab (the uptime slowdown fixed in #2041). Track mapped menus in a small registry instead and refresh them from the tab's existing event dispatch when a sort finishes or a column reloads. Refs #1652 * test(sort): round-trip a non-default per-folder name comparison Refs #1652 * fix(sort): keep a finished sort from seeding the next folder at its depth A sort stays pending after it applies, so once Columns replaced that column with another folder, the next sort, name-order or default action there started from the previous folder's request and saved it for the new folder. Overlay a request only while it is still waiting to apply to the folder it was made for. Refs #1652 * fix(sort): treat a missing birth time in full listings as unavailable Filesystems without birth times (NFS, SFTP) left every listed row's creation time unknown, so a Created sort refilled the whole folder on each load, file by file over the network for remote folders, and a monitored change moved its row ahead of the filled ones. Refs #1652 * docs(sort): restore the directory metadata note on sort gap targets Refs #1652 * feat(sort): flatten the sort menu and label its default action Make default List Extension and Created with the other fields and show Natural, Alphabetical and Case-sensitive names under a Name order heading, so no choice hides in a flyout that opens over the listing at the window edge. Unsorted has no row: unchecking the active field already turns sorting off. Drop the submenu summaries, their styling and the submenu-only keyboard routing, and rename the QA scenario to match. Refs #1652 * fix(sort): match the sort menu's top inset to its bottom Native context menus open with a padded header row, so their contents only pad the bottom; the sort menu opens on a section title, which sat 8px closer to the top edge than its last row did to the bottom. Refs #1652 * style(sort): apply rustfmt to the sort menu * test(icons): wait for the grid layout before checking Left wraps rows The test pressed Down 100 ms after switching to Icons and assumed the grid already had several columns. On a loaded CI runner it had not been laid out yet, so Down reached the second tile and the test failed; this also failed #2044's own CI. Wait until Down moves a whole row instead. * test(icons): accept any row start in the Left-wrap test GTK 4.22, which CI uses, lays the fixture's tiles out about 450 px wide in a 460 px grid, one per row, where GTK 4.24 fits two. Requiring Down to pass the second tile therefore always failed on CI. Wait for the tiles to be laid out, then use whichever row start Down reaches; with one column Left from the second tile still must not enter the sidebar, and the test still fails on both versions without #2044's fix. * test(transfer): keep chooser background stamps from taking the injected check The chosen-folder check failed or held only the first stamp of the folder, which the chooser's own relocation, relist and freshness work could make first under load, so the check succeeded and the chooser closed. Inject into every unforced stamp of the case and pass over forced freshness stamps. * test(columns): wait for the autofit animation to end before comparing widths The animated case read the column after a fixed 280 ms, but its ticks wait for frames, which a loaded runner draws late, so the column was still mid-animation. Wait for the column to end at the saved width instead. --------- Co-authored-by: Pierre Berube <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
In Icons view, Left at the first tile of any row after the first counted as the pane's left edge. With Keep arrows in file list on, the key was swallowed. With it off, focus jumped to the sidebar. Right already wraps into the next row, so the two keys didn't match.
at_left_edge()now treats only a section's first tile (position 0) as the edge, the same rulefocus_header_from_top_item()uses. Left from any other row start goes to GTK, which wraps to the last tile of the previous row. The portal chooser's sidebar exit (item_at_left_edge()) had the same "any first column" check and now uses the same rule. List and Columns don't change.A headless test covers both settings of the preference: Left at a row start wraps to the previous tile. Left at the first tile stays put when arrows are scoped and enters the sidebar when they are not.
Visual evidence
N/A: this changes keyboard focus routing, not anything drawn on screen.
How to test
Expected result: In both settings, Left at a row start moves the cursor to the last item of the previous row. Left on the very first item stays put with the setting on and enters the sidebar with it off. In the file chooser portal's Icons view, Left at a row start also wraps, and Left at the first item still exits to the sidebar.
Related issue
Closes #2043