Commit graph

24968 commits

Author SHA1 Message Date
António Fernandes 9ae3e668a6 files-view: Remove obsolete #include
No symbols from this header have been used since commit 7f16bffe19
2024-01-31 01:23:33 +00:00
António Fernandes 9beade5de3 directory-notify: Remove undefined prototypes
The definitions have been removed long ago. [1]

[1] 37be3809bc
2024-01-31 01:23:33 +00:00
António Fernandes 4794dbd981 file: Add FIXME to obsolete code block 2024-01-31 01:23:33 +00:00
António Fernandes abe2e3b74b directory-async: Use nautilus_file_is_self_owned()
This is more descriptive.
2024-01-31 01:23:33 +00:00
António Fernandes 65fb01c55b directory-private: Remove undefined function from header 2024-01-31 01:23:33 +00:00
António Fernandes afa4c06f01 window-slot: Simplify query editor signal handling 2024-01-31 01:23:33 +00:00
António Fernandes 2b5321660f window-slot: Don't reload to change only selection
We've been reloading if asked to show an existing location but select
a different file, since commit d0b0be2184

The reload is unnecessary, let's just set the new selection.
2024-01-31 01:23:33 +00:00
Peter Eisenmann 8065c9b721 readme: minor phrasing changes 2024-01-31 02:08:59 +01:00
Peter Eisenmann 4cba28d75b general: replace wiki links
The wiki is slowly getting deprecated. Replace all wiki links with their
respective replacements.

Only the translation project information still only resides on the wiki.
2024-01-31 02:08:36 +01:00
António Fernandes 20d8db336c build: Bump gtk dependency
I've just reverted a workaround to a GtkExpression bug which has been fixed by 14e78663ee

So, depend on the latest development release, which includes this bugfix.
2024-01-30 23:40:31 +00:00
António Fernandes d1ee61ee98 Revert "grid-view: Workaround weakref bug"
This reverts commit 6fa221dfbb
2024-01-30 23:40:31 +00:00
Corey Berla d2b2c814a3 pathbar: Change cursor to text when action is loation entry
As part of commit f65c2921b0 ("window: Open location entry when
current path is clicked") we allow entering location entry
by clicking the current folder button.  This, however, is not at
all obvious, and not only defeats the original intent of the change
but also leads to issues such as the inability to maximize the
nautilus window (by double clicking the current folder).
Hopefully if we make the action more obvious, errors will be
less likely.

Furthermore, with the pending elimination of Other Places
(and replacement by Network View), there's one less way to
access the root file system. This makes the discoverability
of the location entry even more important for people who
want to access '/'.
2024-01-30 22:23:28 +00:00
Corey Berla 1234b5ad66 ci: Add script to check for potfile errors
It's easy to forget to update potfiles. Steal the script that
gnome-shell uses to check for this.
2024-01-30 13:51:53 -08:00
Automeris naranja 867d3fc153 column-chooser: Port to AdwPreferencesPage
Also:
- Use AdwHeaderBar
- Use "top" child type to allocate the AdwBanner
- Remove the margins from the listbox since
AdwPreferencesPage already has margins
2024-01-30 10:26:42 +00:00
Automeris naranja c02e9e33a4 properties-window: Add mnemonics to some rows
Add mnemonics to "Link Target" and "Parent Folder" rows
to trigger their corresponding buttons ("Open Link Target"
and "Open Parent Folder").
2024-01-30 10:09:14 +00:00
Automeris naranja 8e97bfe735 nautilus-column-chooser: Add tooltip to the ellipsis button
Currently, Orca reads this button as "toggle button", which
isn't very descriptive. Add a tooltip to fix that.

This tooltip is the same that Settings uses for buttons
with the view-more-symbolic icon:

f15d260323
3feeb4c6f0
https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/2023#note_1930784
2024-01-30 09:08:40 +00:00
Peter Eisenmann c58b81914d column-chooser: fix evaluation order with brackets
The expression introduced in [1] would otherwise evaluate incorrectly,
potentially leading to crashes.

[1] cf977ff0f6
2024-01-30 04:37:43 +01:00
Peter Eisenmann 4358310ae6 files-view: use list base for columns editor
This was an oversight in the view refactoring from [1].

Fixes #3283

[1] 6b9134f420
2024-01-30 04:14:59 +01:00
Monster 9faecbcfdf general: Fix wrongful title case 2024-01-30 00:27:57 +00:00
Monster b7e833e0bc general: Fix title case in drop down menus 2024-01-30 00:27:57 +00:00
Monster 63fe3500bc help-overlay: Correct title case 2024-01-29 22:27:43 +01:00
Peter Eisenmann fcffac9f6e general: make all headers end with one newline
Some IDEs automatically add them, leading to undesired changes in MRs.
Add them to avoid any such issues in the future.
2024-01-29 14:11:03 +01:00
António Fernandes c93da5f024 Post-release version bump
46.alpha.1 has been released from another branch.
2024-01-28 21:45:57 +00:00
Peter Eisenmann 1e9c8a7cc5 pofiles: add star-cell
For translations of tooltips.

Fixes #3279
2024-01-28 18:57:01 +01:00
António Fernandes 33cae02c25 window-slot: Simplify view mode change code
nautilus_window_slot_set_content_view() used to be a public method[0],
because it used to be called by the action code from window.c[1]

Nowadays it's just unnecessary indirection.

[0] commit 8bee9ef99b
[1] commit c2847953b2
2024-01-28 17:33:20 +00:00
António Fernandes 576f50d666 window-slot: Switch view mode without force reload
Reloading the directory can be slow and resource-intensive.

Now that the actual grid and list views is not the same object as the
one which loads/monitors the directory (i.e. NautilusFilesView), we
can swap the inner view while keeping the loaded directory unchanged
and the model mostly unchanged.

(I say "mostly" because we need to collapse expanded rows before
switching to grid view, which would otherwise display subfolder
contents as if part of the parent folder.)

Resolves https://gitlab.gnome.org/GNOME/nautilus/-/issues/3042
2024-01-28 17:33:20 +00:00
António Fernandes c653f88090 list-base: Don't inherit from NautilusFilesView
Become a child of NautilusFilesView's internal GtkStack instead, in
place of the "content_widget".

As planned in https://gitlab.gnome.org/GNOME/nautilus/-/issues/3042
2024-01-28 17:33:20 +00:00
António Fernandes 6b9134f420 files-view: Store NautilusListBase pointer
For now this is just a recast of self.

But it's going to become another object next commit.
2024-01-28 17:33:20 +00:00
António Fernandes 183cddd516 list-base: Make model a RW property
We can't keep using nautilus_files_view_get_model() if we stop being a
subclass of NautilusFilesView. Additionally, if we want to change view
mode while keeping the model around, we must be able to set a model on
the view after creation. This is one of the final pieces for the plan
detailed in https://gitlab.gnome.org/GNOME/nautilus/-/issues/3042

This change implies we need to cope with the model-less state, i.e.,
guard against model being NULL. Additionally, for list view, it means
the sorter and the expand_as_a_tree flag must be set as soon as the
model gets set the model.
2024-01-28 17:33:18 +00:00
António Fernandes defb9a11ea view-info: Introduce shareable header
NautilusListBase and its subclasses need these ids, but will soon
stop including nautilus-view.h (through nautilus-files-view.h), when
they become child widgets instead of subclasses of NautilusFilesView
2024-01-28 17:18:29 +00:00
António Fernandes ee6ee07543 list-base: Import scrolled window
We want to become a child, not a subclass, of NautilusFilesView, as per
https://gitlab.gnome.org/GNOME/nautilus/-/issues/3042

As such, we need to own the scrolled window. But NautilusFilesView still
needs to track scroll changes, for the search extender button, so we also
expose a vadjustment getter.
2024-01-28 17:18:29 +00:00
António Fernandes 14da37e39b files-view: Reorder code
This makes the diff of the next commit simpler.
2024-01-28 17:18:29 +00:00
António Fernandes d007a54e2f list-base: Import kinetic scroll hack
Same rationale as previous commit.
2024-01-28 17:18:29 +00:00
António Fernandes c9a8d9a635 list-base: Import scroll controller
This is one less usage of the scrolled window in NautilusFilesView.
2024-01-28 17:18:29 +00:00
António Fernandes f06493a63a placessidebar: Stop requesting size
Nowadays, we have breakpoint-based layouts which take care of ensuring
the sidebar has the desired size.

But the sidebar was itself requesting a size. It was smaller than what
the window layout enforces, so it was not noticed until now that it is
forcing the progress indicator in the sidebar to be clipped off-window.

Do the right and simple thing to fix it.
2024-01-28 02:13:17 +00:00
Corey Berla 2bdcf1cf7b progress-indicator: Display summary on the sidebar
The single pie for multiple operations has been too vague and not very
useful when dealing with multiple operations.

Implement the design produced from https://gitlab.gnome.org/Teams/Design/app-mockups/-/issues/89

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/838
2024-01-28 02:13:17 +00:00
Corey Berla edea3fc6be progress-info: Add some properties
This will make it a lot easier to use a GtkBuilderListItemFactory in
subsequent commits.
2024-01-28 02:13:17 +00:00
Corey Berla 83b98047e0 progress-indicator: Remove pie
The operations button will be replaced by a short sidebar list
in the following commits.  The sidebar pie is now useless.
2024-01-28 02:13:17 +00:00
Corey Berla d6b7f87029 progressor-indicator: Add reveal property
Now that the progress indicator is in the bottom bar of the
toolbarview, we can simply bind our reveal property to show and
hide the progress indicator.
2024-01-28 02:13:17 +00:00
Corey Berla 5ce69aeff5 window: Move progress indicator to toolbar's bottom
And restyle to cover the whole bar and open popover to the end.
2024-01-28 02:13:17 +00:00
António Fernandes dfac3050f4 style: Refine progress indicator selector
Provide a widget name and shorten a class.

Also remove class which has been unused since 610c991ca7
2024-01-28 02:13:17 +00:00
Corey Berla fbc9b0fe4a progress-paintable: Remove timeout to hide finish icon
For us these are short lived icons and it looks weird to hide the
finish icon and then immediately hide the hide.
2024-01-28 02:13:17 +00:00
Corey Berla 1ea09379f5 progress-paintable: Replace downloads arrow icon
We aren't "downloading" in nautilus, rather, the
operation is either a success or failure, so we'll
add a property to update the icon accordingly.
2024-01-28 02:13:17 +00:00
Corey Berla 784722155d progress-paintable: Copy from ephy
Ephy has a beautiful circular progress bar, let's use that
instead of reinventing the wheel. This will be part of the
sidebar operations.
2024-01-28 02:13:17 +00:00
Demigod345 86e508b26c window: initialize undo actions on construction
Set the state of Undo and Redo actions on the construction of a new Window based on the current state.
Also fix the wrong action that was set for Redo.

Fixes: #3263
2024-01-28 00:38:12 +00:00
Daniel Rusek 1665b4c41d Update Czech translation 2024-01-27 12:43:31 +00:00
Yosef Or Boczko e6c1f4eee3 Update Hebrew translation 2024-01-25 11:30:33 +00:00
Fran Dieguez a174af7edb Update Galician translation 2024-01-24 08:26:23 +00:00
Demigod345 5cf429f962 window: Change issue-url for "Report An Issue"
"Report An Issue" redirects to https://gitlab.gnome.org/GNOME/nautilus/-/issues/new directly.
However, the users that are not logged in, would be greeted by a login screen.

This fix would redirect all users to see all the existing issues, irrespective of whether they are logged in or not.

Fixes: #3220
2024-01-23 23:34:21 +00:00
Yuri Chornoivan 3d861d3d4b Update Ukrainian translation 2024-01-23 20:43:09 +00:00