| Age | Commit message (Collapse) | Author |
|
Makes the application close when only properties windows are open.
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/work_items/4227
|
|
|
|
|
|
|
|
When validation feedback changes (e.g. invalid characters in a
filename), announce the text to screen readers via the active window.
This is handled entirely within NautilusFilenameValidator, so all
consumers (rename popover, compress dialog, new folder dialog) get
screen reader support automatically. Unfortunately, for this to work,
we end up with a weird indirection on NautilusFilenameValidator, where
we access the GApplication to get its active window so that we can make
the proper gtk_accessible_announce call with a widget references.
This is useful for the renaming files/folder popover, naming compressed
files in the CompressDialog, and the file chooser.
Related to #3960
|
|
During removal of a file from the model (which can be even an external
rename), the focus jumps to the toolbar, which is unexpected.
Save the selected file and the focused state of the files list so we can
restore it after handling the filesystem events.
Fixes #4204.
Co-Authored-By: Peter Eisenmann <p3732@getgoogleoff.me>
|
|
Since [1] gtk_widget_class_add_binding_action handles key aliases, so
there is no longer a need to add them explicitly.
GTK commit was pointed out by Sebastian Keller in [2]. Technically GTK
version 4.23.2 is required, but version 51 will be packaged together
with GTK version 4.24 anyway.
[1] https://gitlab.gnome.org/GNOME/gtk/-/commit/0253063640b0bb1af5e5cf3db563c273ff018fd7
[2] https://gitlab.gnome.org/GNOME/nautilus/-/work_items/4278#note_2849761
|
|
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/work_items/4297
|
|
When early returning the queue objects leaked GFiles.
Pointed out by Khalid in [1]
[1] https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/2075#note_2854308
|
|
|
|
|
|
Turns out the slot and view were disjointed since the slot has its own inner view
which is empty by default and going to ignore the view we created if the function
nautilus_window_slot_open_location_full() gets called. Added a new function that
makes sure that they are connected correctly.
This fixes the open-item-location action test.
|
|
|
|
|
|
These don't belong in the folder context menu.
|
|
|
|
|
|
|
|
Asynchronously iterates a directory recursively, calling a given callback
for each encountered file, as well as another callback when iterating
is finished.
|
|
Fixes https://gitlab.gnome.org/GNOME/nautilus/-/work_items/3597
|
|
These checks are from before the inner views were made independent
widgets in [1].
[1] c653f8809092223dc3ae0366bfd6f63ca85e9c3c
|
|
|
|
Only called in one place since the previous commit.
|
|
Previously this was only done when showing search results, but it also
makes any kind of navigating more pleasant, since there is no brief
flashing of a blank folder.
This is somewhat inspired by a change in sushi ([1]) that also delays UI
loading by 200ms for the effect of smoother transitions.
[1] https://gitlab.gnome.org/GNOME/sushi/-/commit/800b31508474490ef4906c6bb524affcb8719256
|
|
Allows sushi to initiate trashing and renaming of files.
Related-to: https://gitlab.gnome.org/GNOME/sushi/-/work_items/117
Related-to: https://gitlab.gnome.org/GNOME/sushi/-/work_items/118
|
|
Allows sushi to open directories in the view they are previewed from.
The signal provides the uri to be navigated to, along with an activation
token. The uri is sanity-checked to be a directory, otherwise the request
is ignored.
Related-to: https://gitlab.gnome.org/GNOME/sushi/-/work_items/132
|
|
Allow for more than one type of subscription by tracking subscriptions
in an array Also add helper functions to shorten the event handler
callbacks.
|
|
Old assumption that tab menu doesn't appear except with +2 tab is not valid
anymore, so we need to disable more actions.
|
|
Use a GtkStack instead of an overlay. Also drop redundant GtkWidget
function reimplementations.
|
|
Capture inputs from the whole dialog and focus search entry on changes.
|
|
|
|
Repurpose the seen_apps hash table across all add_section calls.
The default section stays unchanged.
|
|
|
|
Not a platform we support anyway.
|
|
Mark the entry invalid on the a11y layer as well when we add the error CSS
class.
|
|
By default nautilus uses the sushi version that matches the build
profile. Devel profile will try to use Devel version of sushi, but also
has a fallback to non-Devel version. This adds a fallback from non-Devel
nautilus to Devel version of sushi.
|
|
When opening the properties dialog from a view, the "Open Parent Folder"
row is intentionally hidden because the user is already viewing the parent
directory.
However, if the user detaches the properties dialog into an independent
window, the window is no longer anchored to that specific view.
This commit clears the current view location reference when popping out
the window and recalculates the location info visibility, optimally
updating and revealing the parent folder row if needed.
properties: Show parent folder row when dialog is detached
When opening the properties dialog from a view, the "Open Parent Folder"
row is intentionally hidden because the user is already viewing the parent
directory.
However, if the user detaches the properties dialog into an independent
window, the window is no longer anchored to that specific view.
This commit clears the current view location reference when popping out
the window and recalculates the location info visibility, optimally
updating and revealing the parent folder row if needed.
|
|
|
|
|
|
|
|
This allows Nautilus to open new locations in existing windows as tabs
instead of creating a new window every time, especially when triggered
via DBus interfaces.
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/work_items/1687
|
|
window: Remove width limit of sidebar
|
|
Otherwise they get sorted after "other" apps.
|
|
directory
|
|
|
|
Now that there is AdwTabOverview and AdwTabButton, hide
AdwTabBar when the window. The tab management will be
done through AdwTabOverview, which is better suitable
for small screens.
|
|
Add an AdwTabButton at the bottom toolbar to open
AdwTabOverview. This makes reaching AdwTabOverview
much easier in a phone, for example, which improves
UX and adaptiveness.
|
|
Since the .view style class is set directly in
NautilusWindow, the .view .thumbnail style class also
affects AdwTabOverview, which is a child of NautilusWindow.
This causes the AdwTabOverview tab thumbnails to have
glitchy border corners because the checkerboard pattern is
also being applied to them.
Co-authored-by: Alice Mikhaylenko <alicem@gnome.org>
|
|
AdwTabOverview helps managing tabs, specially when there
are lots of them open.
Co-authored-by: Khalid Abu Shawarib <kas@gnome.org>
|
|
Currently, when a user opens the properties dialog for a file from within its parent folder, the 'Open Parent Folder' button is displayed. This is redundant, as the user is already actively viewing the parent folder. The option is primarily useful when opening properties from a search result, recent files, or starred files.
This commit updates the NautilusPropertiesWidget to be context-aware. It tracks the location from which the properties dialog was spawned and dynamically hides the 'Open Parent Folder' row if the file's parent location matches the active view location.
Closes #4077
|