Commit graph

22813 commits

Author SHA1 Message Date
Maximiliano
8bea51e173 general: Use proper license identifiers
GPL3+ is a deprecated SPDX identifier.[0] The meson and about dialog say
GPL 3.0, so that should also appear on the appdata.

[0] https://spdx.org/licenses/
2022-02-28 18:42:00 +00:00
Alan Mortensen
ebe4613a42 Updated Danish translation 2022-02-28 19:00:48 +01:00
Charles Monzat
190a56be42 Update French translation
(cherry picked from commit 616997b5dc)
2022-02-28 17:37:22 +00:00
Piotr Drąg
26208ea7be Update Polish translation 2022-02-27 15:04:04 +01:00
Dušan Kazik
de408da9e9 Update Slovak translation
(cherry picked from commit 9f865bcc7d)
2022-02-25 07:11:55 +00:00
Danial Behzadi
e663b2c954 Update Persian translation
(cherry picked from commit 4cab62a6fd)
2022-02-20 11:06:24 +00:00
Jordi Mas
7c4400b09b Update Catalan translation 2022-02-20 09:00:55 +01:00
Emin Tufan Çetin
569c43c5d8 Update Turkish translation 2022-02-18 11:20:43 +00:00
Utkarsh Gandhi
12a876ef75 placessidebar: Clarify "Remove Bookmark" in the bookmark popup menu
Currently, in the bookmark popup menu, the option to remove the bookmark is named "Remove".

However, this may cause confusion to a new user/a user with weak knowledge about how the bookmark section whether the "Remove" option in the popup menu means removing the entry or removing the contents of the folder in the bookmark.

To fix this, the option "Remove" has to be changed to "Remove from Bookmarks".

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2125
2022-02-13 00:02:34 +00:00
Fran Dieguez
714f2da923 Update Galician translation 2022-02-12 20:51:43 +00:00
Marek Černocký
9baf2fbce5 Updated Czech translation 2022-02-12 20:52:45 +01:00
yash10019coder
f96c14189c files-view: Allow opening current location with other apps
Add a new menu item to the background context menu and the current folder menu in the pathbar.

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1969
2022-02-12 17:45:44 +00:00
Nelson Benítez León
1300f7198c nautilus-directory: handle change events
for files that were still not known to nautilus because they were in
the midst of being added to Nautilus. This happens when eg. inotify
fires two consecutive NEW + CHANGE events for a new file, and it's
important to handle the CHANGE event as the file may have changed
its properties with respect the ones reported at the time the NEW
event fired.

A case this happens is for mountpoint directories of
removable devices, as seen in the referenced bug below.

We now queue CHANGE events received for files unknown to Nautilus only
when the parent folder is currently adding new files. When the folder
finish adding the new files, we then process the list of queued files.
If there are still files unknown to Nautilus in this list, they will
be ignored as before.

https://bugzilla.gnome.org/show_bug.cgi?id=703179
Issue #1576
2022-02-12 17:07:24 +00:00
António Fernandes
14c20909ef window: Attach tab context menu to the tab
Due to GtkPopover now being a child of the window, instead of setting an
attach widget we need to pass it the allocation of the tab, with the
origin coordinates translated to the window coordinate space.

Also use double instead of int when appropriate and replace GdkEvent
usage with event controller method to get modifier status.

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2101
2022-02-12 16:49:04 +00:00
António Fernandes
7ec35dd46b notebook: Translate coordinates to find clicked tab
In GTK3, the tab label allocation was given in coordinates which were
relative to the parent widget's allocation.

In GTK4 the allocation is for the widget's own coordinates instead.

Translate the event coordinates accordingly to make this logic work
again. Also, test for the lower limit in addition to the upper limit.
2022-02-12 16:49:04 +00:00
António Fernandes
6753140c0d window: Set tab menu model in UI definition 2022-02-12 16:49:04 +00:00
Tero Gusto
99d452bc89 help-overlay: Add arrow keys to Keyboard Shortcuts
Adds description for Left & Right arrow keys to Keyboard Shortcuts documentation.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2081
2022-02-12 15:51:58 +00:00
António Fernandes
71d5cd95e7 Post branch version bump 2022-02-12 01:11:33 +00:00
Noëlle
ec1aafac27 preferences-window: Hide when closing 2022-02-10 09:41:06 +00:00
Georges Basile Stavracas Neto
a5d25f37d6 flatpak: Allow accessing the GPU
By giving the --device=dri permission, Nautilus can access
the GPU. This wasn't a big deal with GTK3, but on GTK4 that
enabled hardware-accelerated rendering via OpenGL, and it
makes a noticeable difference in terms of CPU usage and
perceived performance.
2022-02-10 07:49:44 +00:00
Ondrej Holy
9cbe348cdf compress-dialog: Use GtkDropDown for format selection
The `system-lock-screen-symbolic` icon is misplaced in the `AdwActionRow`
widget after the GTK 4 port and there is no easy way to fix this. Let's
port the whole `GtkPopover` for format selection to `GtkDropDown` instead.
This also allows adopting the originally intended design.

Related: https://gitlab.gnome.org/GNOME/nautilus/-/issues/822
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2084
2022-02-09 18:25:21 +00:00
Ondrej Holy
807ff3d77b file-operations: Call autoar_compressor_set_passphrase conditionally
The `autoar_compressor_set_passphrase` function is always called currently
regardless the fact whether password is set, or not. Consequently, the
 "autoar_compressor_set_passphrase: assertion 'self->format == AUTOAR_FORMAT_ZIP'
failed" critical is printed. Let's call that function only if the passphrase is
really wanted.
2022-02-09 18:25:21 +00:00
António Fernandes
193b078ba0 view-icon-controller: Prevent spontaneous scrolling when loading
When loading a directory with many files, GtkGridView keeps scrolling
down spontaneously.

This happens because GtkListBase anchoring doesn't cope well with our
lazy loading.

Use a hacky workaround to prevent scrolling while we are at the top.
2022-02-09 18:11:40 +00:00
António Fernandes
48bc04e65c view-icon-item-ui: Give thumbnails a background
Thumbnails may have an alpha channel. Fully transparent areas get the
color of the view background, which is awkward in combinatino with
shadows giving a raised appearance.

So, set a shaded background to make the transparent areas feel part of
the "raised" icon, not the view background.
2022-02-09 18:11:40 +00:00
António Fernandes
c25bd2eece view-icon-controller: Fix Shift and Ctrl selection 2022-02-09 18:11:40 +00:00
António Fernandes
809049a3f6 view-icon-controller: Port from GtkFlowBox to GtkGridView
The new scalable list widget offers good performance with large number
of items.

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/319
2022-02-09 18:11:40 +00:00
António Fernandes
f47afd0a9f view-icon-controller: Stop setting column/row spacing
There is no GtkGridView equivalent for this GtkFlowBox API.

Use child widget margins instead.
2022-02-09 18:11:40 +00:00
António Fernandes
069556b2e3 view-icon-controller: Get first visible item from model
Further reducing the usage of GtkFlowBox API.

Also update a for loop to avoid going "down" from 0 to G_MAXUINT.
2022-02-09 18:11:40 +00:00
António Fernandes
ff78107ff0 view-icon-controller: Get first selected from model alone
This removes another usage of GtkFlowBox API, preparing for GtkGridView.
2022-02-09 18:11:40 +00:00
António Fernandes
8c89cebb2c icon-controller: Add gestures to children
GtkFlowBox allows us to get a child by its coordinates, but this will
not be possible with GtkGridView.

Instead, let's add gestures to each children such that we can get the
clicked widget using gtk_event_controller_get_widget(). This requires
using the bubble phase such that children can capture the event before
the parent, and translating event coordinates to the view ones. As we
can't get the position from the event widget, also introduce a method to
get the model item from the widget.

While here, rename an outlier callback symbol and remove a GTK3 #if.
2022-02-09 18:11:40 +00:00
António Fernandes
957ce98bc2 view-model: Implement GtkSelectionModel interface
This is a requirement for GtkGridView.
2022-02-09 18:11:40 +00:00
António Fernandes
6d3de5b988 view-icon-item-ui: Fix icon sizing
We want the top of the labels to align vertically among all items. For
this we set a minimum height and width for the container of the icon.

However, then a thumbnail is taller than it is wide, the picture makes
its container grow taller than the minimum height, despite the picture
never actually using being taller than the minimum height.

As in the previous commit, as a workaround, wrap the image in AdwClamp,
such that the height for width computation doesn't account for more than
height than necessary.
2022-02-09 18:11:40 +00:00
António Fernandes
2b42311bf3 view-icon-item-ui: Fix labels sizing
We want all items to have the same width and for this we have been
setting GtkLabel:max-width-characters to 0, such that labels take
grow only until the width defined by the icon container.

Unfortunately, doing this for wrapping labels in a dynamic grid causes
allocation warnings and visual glytches (labels overflowing the height
of their container), which I assume are due to the labels reporting a
minumum height for a width which goes beyong the minimum width set on
the icon container.

So, instead of setting Gtk:Label:max-width-characters to 0, wrap the
whole thing in a horizontal AdwClamp with its :maximum-size set to 0.
This forces the labels to report a height which corresponds to the
actual minimum width set by the icon container.

Also, remove some meaningless properties from the UI file.
2022-02-09 18:11:40 +00:00
António Fernandes
3c4f6a3b68 view-icon-item-ui: Don't subclass GtkFlowBoxChild
In order to ease the transition to GtkGridView.
2022-02-09 18:11:40 +00:00
António Fernandes
0fb98f3c32 view-icon-controller: Get children by index from model
GtkGridView is going to rely more heavily on item index instead of
pointer to widget which might be recycled for another item.
2022-02-09 18:11:40 +00:00
António Fernandes
4eb8d7b73b view-icon-controller: Add style class
Our custom CSS relies on `flowbox` and `flowboxchild`. But GtkFlowBox
is about to be replaced with GtkGridView. Also, it may happen that
we use either widget in other contexts in this app in the future, so
it's best to be more specific on where we want the styles to apply.
2022-02-09 18:11:40 +00:00
António Fernandes
334c2fdcb7 view-icon-controller: Don't use custom selection style
We've tried to match the visual style of NautilusCanvasView selected
items, but it falls short from being an exact match.

Also, that style is outdated. Adopt a style which matches the modern
standards, following designers advice. This is easily achieved using
the default style from GTK.

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2105
2022-02-09 18:11:40 +00:00
António Fernandes
9c0adbca02 view-icon-controller: Properly translate coordinates
Adding/subtracting adjustment values is error-prone and ignore
padding/margins.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2095
2022-02-09 18:11:40 +00:00
Quentin PAGÈS
40bdd690dd Update Occitan translation 2022-02-09 17:54:57 +00:00
Quentin PAGÈS
bebdf41ae2 Update Occitan translation 2022-02-09 17:51:22 +00:00
Owen D'Aprile
8dcb8af47e files-view: Move copy and paste menu items to old section
Move the copy and paste menu items back to the section with "Create Link" and
"Paste into Folder" as they were in Nautilus 41.

Related: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2089
2022-02-09 08:51:48 +00:00
Owen D'Aprile
2aed2f42d2 files-view: Use regular menu items for copy and paste
The new copy and paste context menu buttons are a bit weird and might be too
wide in some translations. Use regular menu items for the copy and paste
buttons as they were in Nautilus 41.

Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2089
2022-02-09 08:51:48 +00:00
Christopher Davis
502c4d8f76 flatpak: Use main branch for libportal
libportal changed the name of their primary branch to
`main`. `flatpak` can't automatically handle `main`,
so we need to specify it manually.

Should fix the recent CI failures.
2022-02-09 08:43:05 +00:00
Matej Urbančič
dbefd304df Update Slovenian translation 2022-02-08 20:05:38 +00:00
Ondrej Holy
e55613a582 eel-stock-dialogs: Remove unused functionality
Some functions are no more used. Let's remove them instead of fixing
GTK 4 regressions in them.

Related: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2117
2022-02-07 16:41:05 +00:00
Ondrej Holy
7cad82c9d1 general: Make message dialogs modal again
After the GTK 4 port, some dialogs are no more modal. This is regression,
which is probably caused by the fact, that this needs to be explicitly
specified now. Let's make all the `GtkMessageDialog` dialogs modal again.

Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2117
2022-02-07 16:41:05 +00:00
sicklylife
84913a9df5 Update Japanese translation 2022-01-30 15:24:26 +00:00
sicklylife
cad7ed5007 Update Japanese translation 2022-01-30 15:11:29 +00:00
Asier Sarasua Garmendia
79884a6666 Update Basque translation 2022-01-29 07:56:16 +00:00
Marek Černocký
6b5bdace34 Updated Czech translation 2022-01-28 23:35:03 +01:00