Commit graph

25071 commits

Author SHA1 Message Date
Alexander Shopov 7fc81c3b6b Update Bulgarian translation
(cherry picked from commit b755010a48)
2024-05-08 20:29:11 +00:00
Efstathios Iosifidis b6d822b32a Update Greek translation
(cherry picked from commit 633dec2347)
2024-05-08 08:56:30 +00:00
Martin da6c4fb447 Update Slovenian translation 2024-05-07 07:48:10 +00:00
Khalid Abu Shawarib 729f3fb6ca nautilus-window: Disable sidebar gestures when not collapsed
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/3419
2024-05-06 23:27:34 +00:00
Automeris naranja b3d94396d1 properties-window: Remove "focusable=false" from the window
It's unusual for a dialog/window to have this. Also, this might
cause a11y issues when using Orca.
2024-05-06 23:13:11 +00:00
Automeris naranja 328af29621 properties-window: Set "accessible-role=presentation" in the disk usage circles
The disk usage indicators/circles from "volume_usage_row"
are actual characters (●). However, Orca also reads these
indicators, something that is unnecessary, which also can
be confusing.
2024-05-06 23:13:11 +00:00
Automeris naranja 886b65cc99 properties-window: Port "volume_usage_row" to AdwPreferencesRow
Doing so, it won't be necessary to use a GtkListBox to give the
.boxed-list style to this row.
2024-05-06 23:13:11 +00:00
Automeris naranja 9803261466 properties-window: Remove "activatable=false" from property rows
Property rows aren't activatable by default, so using "activatable=false"
is redundant.
2024-05-06 23:13:11 +00:00
Automeris naranja 8d86a19727 properties-window: Port "Change Permissions for Enclosed Files" to AdwButtonRow
This will improve consistency as the properties dialog use rows
extensively.
2024-05-06 23:13:11 +00:00
Automeris naranja 5a57e25eac properties-window: Use header capitalization in the "Trashed on" row
https://developer.gnome.org/hig/guidelines/writing-style.html#header-capitalization
2024-05-06 23:13:11 +00:00
Automeris naranja 52b1fc063a properties-window: Port to AdwPreferencesPage/Group
This removes the need for custom styling.
2024-05-06 23:13:11 +00:00
Automeris naranja 9e95a23cd4 properties-window: Use AdwBanner for unowned files
Also, use the string suggested in [1].

[1] https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/1499?commit_id=61be70bf8bbe5e1156268335563e3d8c08007ec9#note_2097142
2024-05-06 23:13:11 +00:00
Automeris naranja e6cf23920d properties-window: remove unused permission label 2024-05-06 23:13:11 +00:00
Peter Eisenmann 5c0085e8d4 general: make uncrustify happy
New version of uncrustify has a new/different opinion on function
typedef parameter indentions.
2024-05-07 01:12:27 +02:00
Martin 9a2b1997d1 Update Slovenian translation 2024-05-03 05:46:42 +00:00
Gary Li d79631f025 list-view: Only clear view model sorter if it belongs to us
When switching view mode from list to grid, the grid view may set its view model sorter before the list view has been disposed.

If this happens and dispose runs, we would have cleared the grid view model sorter and file ordering would break upon reload.

Keep track of the sorter created in list-view and check if the sorter belongs to us before clearing it to NULL.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3383
2024-05-02 22:28:00 +00:00
𝅳Automeris naranja 42c5b9c7c6 properties-window: Port "Open in Disks" row to AdwButttonRow
AdwButtonRow is a new widget to present actions at the end of a
boxed list. Requires a bump of libadwaita dependency to v1.6.alpha.

Also, add a mnemonic to this button row.
2024-05-02 22:25:42 +00:00
Hugo Carvalho 2e4ea45f4f Update Portuguese translation
(cherry picked from commit 08567e64b0)
2024-05-02 17:32:04 +00:00
Artur S0 2aa4935c05 Update Russian translation 2024-04-29 12:04:53 +00:00
Khalid Abu Shawarib f9944ccf97 metainfo: Don't specify the language in link
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/3418
2024-04-29 11:45:39 +00:00
Peter Eisenmann c509b256a1 properties-window: only refresh model pages once
Rely on `properties_window_update` to initialize extension models.
2024-04-27 17:26:14 +00:00
Peter Eisenmann ced6598084 properties-window: don't free bound extension model
Keep the bound list of extension providers around while the properties
window is open.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3377
2024-04-27 17:26:14 +00:00
Peter Eisenmann 925a4c15cc audio-video-properties: return early without discoverer
Without a correctly initialized GstDiscoverer, no locations can be
set, so return early if that is the case.
2024-04-27 17:26:14 +00:00
António Fernandes 9298b7b5a2 file: Drop redundant callback
Unlike other preferences change callbacks, it doesn't do anything other
than asking to updating the cached setting value.

Also, it has an unamed and unused `gpointer` parameter, which is unusual.
2024-04-27 14:45:13 +00:00
António Fernandes 7d470a4df6 directory-async: Make callback matching more understandable
This function used to be unnecessarily long and complex, so it has been
simplified by commit e3052ab1c8

However, now it's too cryptic/obfuscated. This is partly dues to the
clash between boolean logic (`0` being FALSE) and the requirements of
g_list_find_custom() (`0` being a positive match). And partly because
of nested ternary operator, dereferencing a union, and unfortunate
naming (`callback` having double meaning).

To make the code easily readable and auditable by humans, let's break
up the comparisons and use explicit return value literals.
2024-04-27 14:45:13 +00:00
António Fernandes c4068e6196 general: Don't treat root directory as separator
This partially reverts commit c5216c47da

G_DIR_SEPARATOR_S exists primarily as convenience to make GLib-based
code portable to Microsoft Windows, which is not relevant to this app.
We can still use it anyway when we want to be clear that a slash is
being used as a dir separator.

The root directory's path is "/". While that's the exact same character
as a directory separator, its meaning is completely different.
2024-04-27 14:45:13 +00:00
António Fernandes c1646b3411 Revert "window-slot: Remove unused property"
This reverts commit b75bd46f49.

While it's not used yet, it's going to be used by the FileChooser
portal implementation.
2024-04-27 14:45:13 +00:00
António Fernandes 613e7f0d84 Revert "window-slot: fully remove unused selection binding"
This reverts commit c092dd8c8c.

While it's not used yet, it's going to be used by the FileChooser
portal implementation.
2024-04-27 14:45:13 +00:00
António Fernandes 7a5dcf26dc Revert "files-view: Move focus function from list base"
This reverts commit ba665f5371.

NautilusFilesView should be agnostic to the inner widgetry. So,
it should not be GtkListItemWidget|listitem.select action.

Also, moving this whole function is not necessary. The true cause of
the bug[0] was that NautilusFilesView was not forwarding the focus
event  its child. Which turned out to be an AdwBin bug. Good news is
this bug has been fixed in libadwaita main[1] and stable[2] branches.

So let's revert this workaround.

[0] https://gitlab.gnome.org/GNOME/nautilus/-/issues/3354
[1] 0e30d48f66
[2] 9962168906
2024-04-27 14:45:13 +00:00
António Fernandes 3a7d1103fd compress-dialog: Don't doubly validate
This is a follow-up to commit 1206af7d12

It fixed a bug where we were validating but not accepting the filename.

try_accept() and validate() do almost the same job except the first also emits 
::name-accepted if valid, or, if duplicate, shows feedback without delay.
2024-04-27 14:45:13 +00:00
Grey Nicholson 2ad62e1e3c Show future dates accurately
Previously, future dates were shown as “Today”.
2024-04-27 14:13:49 +01:00
Sabri Ünal 4a51d4f1f1 ui: Add tooltips to batch-rename dialog
The 'go-up' and 'go-down' icons in the batch rename dialog do not seem to have any tooltips.

> Tooltips can be set for any UI element. They are primarily used to convey additional information about what controls (often icon buttons) do, but can also be used to show additional information about app content.

More information: https://developer.gnome.org/hig/patterns/feedback/tooltips.html
2024-04-26 08:11:48 +00:00
Jeremias Ortega c36bbbb7cb pathbar: Fix typo 2024-04-26 08:04:18 +00:00
Fabio Tomat cc4ef59eba Update Friulian translation 2024-04-22 12:11:39 +00:00
Peter Eisenmann 3adf4e3fd0 Revert "progress-indicator: Align popover to be inside the window"
This reverts commit 94f5a83113.

Aligning the popover is not needed for mobile and looks confusing
on desktop.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3316
2024-04-20 19:52:30 +00:00
Peter Eisenmann 58370f0321 general: use short XML version for attributes 2024-04-20 19:52:30 +00:00
Peter Eisenmann 7b61811d35 progress-indicator: center and expand row content 2024-04-20 19:52:30 +00:00
Khalid Abu Shawarib e8880e3dae dnd: Change function to accept normally ordered list
There's no reason to expect a reversed list, especially if you will
reverse it anyway.
2024-04-20 18:59:46 +00:00
Khalid Abu Shawarib 80325432b5 list-base: Use correct order for dnd file list
In [1], the selection iteration that built the dnd file list was
inverted, which caused the list to be inverted. Removing the old
list inversion call will compensate for it.

[1] eabca038f0

Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/3382
2024-04-20 18:59:46 +00:00
Khalid Abu Shawarib f4e57ad5ff file-utilities: Fix double free
Correctly transfer string ownership by stealing it.

Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/3389

(Ammended by António Fernandes to apply Michael Catanzaro's suggestion)
2024-04-20 18:46:12 +00:00
Yuri Chornoivan 014d654037 Update Ukrainian translation 2024-04-19 17:21:57 +00:00
Fabio Tomat 9c2a9c6b38 Update Friulian translation 2024-04-19 09:22:21 +00:00
Sabri Ünal a912bd0686 Update Turkish translation 2024-04-09 10:03:12 +00:00
Artur S0 81e33cd9a8 Update Russian translation 2024-04-04 16:04:43 +00:00
Automeris naranja 2f6d18be9d batch-rename-dialog: Port to AdwToolbarView 2024-04-04 00:16:58 +00:00
Anton Snigirev d507846b90 properties-window: cleanup properties ui layout
Cleanup ui layout via using AdwActionRow with .property style class
instead of adding GtkLabels for file attributes values.

Note: Long file paths (parent folder, link target, original folder)
become multiline.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3183
2024-04-03 20:49:52 +00:00
Anton Snigirev 0412013f55 properties-window: declaratively set labels tooltips
Using the fourth parameter of add_updateble_label(), we can specify
the name of the file attribute that will be displayed as a label tooltip
2024-04-03 20:49:52 +00:00
Guillaume Bernard 6ab04b25d5 Update French translation 2024-04-03 18:09:26 +00:00
Martin c7b20f5afe Update Slovenian translation 2024-04-02 08:31:43 +00:00
Peter Eisenmann 77de029920 file: setup show_directory_item_count like other preferences 2024-04-02 01:25:44 +02:00