Commit graph

25144 commits

Author SHA1 Message Date
Aefgh Threenine 0d9f56047c Update Thai translation 2024-02-14 11:21:52 +00:00
Artur S0 5fa7f1bac3 Update Russian translation 2024-02-13 16:54:52 +00:00
Ekaterine Papava b85cb8bff9 Update Georgian translation 2024-02-13 04:29:58 +00:00
Yuri Chornoivan 792869c3fa Update Ukrainian translation 2024-02-12 18:57:12 +00:00
Danial Behzadi 45f4769d21 Update Persian translation 2024-02-12 15:49:47 +00:00
Jordi Mas i Hernandez 18847f1e6f Update Catalan translation 2024-02-12 11:58:21 +00:00
Ekaterine Papava f418ce0ac7 Update Georgian translation 2024-02-12 11:37:25 +00:00
António Fernandes 34005a354b Post-release version bump 2024-02-11 22:12:37 +00:00
Peter Eisenmann e0c6d92aaf Release version 46.beta
Also add the 46.alpha.1 release notes, which previously only were on the
tag itself.
2024-02-11 21:19:55 +00:00
António Fernandes ec6e0cf32d files-view: Emit delayed ::clear even if no files are added
We've been emitting it only when the first new item arrives.
This happens at process_pending_files().

But if no file every arrives, the previous items are never
cleared. This happens when opening an empty folder from search
results.

So, unconditionally emit the delayed signals before calling
provess_pending_files().

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3302
2024-02-11 02:22:05 +00:00
Khalid Abu Shawarib 13b1759105 nautilus-files-view: Fix leak
Dropping duplication was forgotten in eada641e09


(cherry picked from commit f61bbc5dceea936f62f3b8d8871279395854fc30)
2024-02-11 01:42:18 +00:00
Khalid Abu Shawarib 3e7744df4a search-popover: Fix leak
(cherry picked from commit 12eca8c1e1d01254d225b6b24bf41d60865b8e6b)
2024-02-11 01:41:47 +00:00
Khalid Abu Shawarib 16b76c3197 search-popover: Hide popover after opening a dialog
(cherry picked from commit 63dbbfc999b7c0964dbbadb627ea5bbd71131ef1)
2024-02-11 01:40:01 +00:00
Khalid Abu Shawarib e3d7f0b3df directory-async: Use hash tables for ready callbacks
This improves performance with directories that have a large number
of direct descendants. Also use the words 'unsatisfied' and 'ready'
instead of active and inactive to better describe the two types.
2024-02-11 01:07:21 +00:00
Khalid Abu Shawarib 18d3df3106 directory-async: Rename misleading function name
Function implies that it only removes active requests when in
reality it doesn't even check for active flag.
2024-02-11 01:07:21 +00:00
Khalid Abu Shawarib e3052ab1c8 directory-async: Simplify function
Simplify ordered comparision function into equality since it's not
being used as ordered comparsion. Keep the name to imply that
it still treats 0 as an equal, same as GCompareFunc.
2024-02-11 01:07:21 +00:00
Khalid Abu Shawarib da6e80fee6 Revert "The HP-UX compiler is an anal retentive bastard."
This reverts commit 6efb3bdcac.

No one cares about that compiler anymore.
2024-02-11 01:07:21 +00:00
Khalid Abu Shawarib 66dbfcd76c file: Reuse parent for thumbnail preference calculation
Most of the time, the functions end up looking up the parent file
twice. So reuse the parent file by passing it directly to improve
performance when loading many files. This roughly improves
`get_speed_tradeoff_preference_for_file` by about 40% when having
local thumbnails only preference, which is by itself about 10%
of CPU time of loading large directories before this optimization.
2024-02-11 01:07:21 +00:00
Khalid Abu Shawarib 1b94266944 file: Allow reading filesystem info for files
There's no reason for this to be restricted to directories. it was
introduced in [1] which seems to just copy the logic from [2] which
was meant for `filesystem::type`. I can't find any commit or
documentation change that states it was ever exclusive to
directories though. Also protect the reading with a check to wether
the filesystem metadata is up to date.

[1] 99f55748ef
[2] bfd9ccf65c
2024-02-11 01:07:21 +00:00
Khalid Abu Shawarib 6962773a5f properties-window: Limit the number of names added.
Put an upper limit on the number of names added to the properties
window. This improves performance when selecting large number
files. Moreover, it is unlikely for many items to fit in the
allocated text area.
2024-02-11 01:07:21 +00:00
Khalid Abu Shawarib f4e194e28c properties-window: Reuse GFiles and store them in a hashtable
When displaying the properties of a large number of files that are
not nested, an inefficient code cause the dialog to take 100+
seconds to open. Instead of generating the entire list again for
every check, store them in hash table before iterating, and search
using the hash table. This provides extreme time saving factor
with large file count.

Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1726
2024-02-11 01:07:21 +00:00
Sabri Ünal b2f9fecb73 Update Turkish translation 2024-02-10 11:20:35 +00:00
Daniel Rusek 0f466f9fe0 Update Czech translation 2024-02-09 22:34:19 +00:00
Sabri Ünal 6d3f4a76d0 misc: Use quotes for name variables
Name variables are mostly used in quotes.
However, there are a few strings used without quotes, which may cause
a burden for users as the name might be interpreted wrongly.
2024-02-09 13:22:53 +03:00
Sam Hewitt 608967a4bc general: update and add symbolic assets
- renamed assets from generic devkit names to nautilus specific names
- updated folder-search, external-link and cancel-operation with newer assets
- added network-computer symbolic for future use in the sidebar
2024-02-08 22:25:44 +00:00
Sabri Ünal d7f8df7517 file-operations: Use quotes for basename variables.
Almost all basename variables seem to be used in quotes.
However, there are a few strings used without quotes, which may cause
a burden for users as the basename might be interpreted wrongly.
2024-02-08 21:04:35 +00:00
Yosef Or Boczko f94c642ae9 Update Hebrew translation 2024-02-08 12:18:48 +00:00
Peter Eisenmann f256ad5133 application: open search locations dialog directly
This depended on [1], which has now landed.

[1] https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/2240
2024-02-07 23:45:57 +00:00
Khalid Abu Shawarib 70aadb657a asan: Add libibus to suppressions 2024-02-07 01:54:40 +00:00
Daniel Rusek 2139a3b7c1 Update Czech translation 2024-02-07 00:38:50 +00:00
Sabri Ünal 63e22e9d2c Update Turkish translation 2024-02-06 19:10:32 +00:00
Danial Behzadi 30cef3340c Update Persian translation 2024-02-06 00:38:47 +00:00
Automeris naranja 4a1e788006 help-overlay: Add "Search Everywhere" shortcut
Also, rename the current "Search" shortcut to
"Search Current Folder".

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3301
2024-02-05 20:48:08 -03:00
Yosef Or Boczko 526b3e39a6 Update Hebrew translation 2024-02-05 19:29:01 +00:00
Bharat 84e1d76f51 progress-info-widget: Change cancel button icon
Set correct icon and remove tooltip for cancel
button when an ongoing operation is canceled

Use cancel button icon "emblem-ok-symbolic" instead of
"object-select-symbolic" since it is more correct in the current
use case as suggested by @snwh

Use tooltip "Completed" for cancel button instead of
"Operation Finished" since it is more friendly in this context
suggested by @snwh

Set "Completed" as a translatable string credit to @coreyberla

Part of https://gitlab.gnome.org/GNOME/nautilus/-/issues/3294
2024-02-05 18:03:22 +00:00
Bharat 50a33a47da progress-info-widget: Change cancel button tooltip
Use "Cancel" instead of "Stop Operation" to be less wordy

Part of https://gitlab.gnome.org/GNOME/nautilus/-/issues/3294
2024-02-05 18:03:22 +00:00
António Fernandes 568bcee071 window: Actually disable back/forward in global search
Hiding the buttons is not enough, as keyboard shortuts and extra mouse
buttons will still be used, with surprising results.
2024-02-05 15:53:09 +00:00
António Fernandes 131f363066 files-view: Ensure ununsed search query is cleared
If the location changes away from a search directory (other than by
toggling the slot.search-visible action) the view keeps holding a
reference to the search query instance.

This can be picked up by global search later, which then reuses an
old query unexpectedly. The simplest way to reproduce this bug is to
type to search, then select a different location from the sidebar,
then click the global search button.

Let's clear the query whenever the location changes to a non-search
directory. Also avoid property notifications if it was already NULL.

Since the tight relation between between set_search_query() and
location loading is easy to miss and get wrong, also add a few
comments at relevant places where its called.
2024-02-05 15:53:09 +00:00
António Fernandes c509a91a49 window: Update sidebar on global search
Don't display the current location as active if we are not showing it.
2024-02-05 15:53:09 +00:00
António Fernandes 17961905a9 window-slot: Quit global search when asked to open location
Even if the location is the current location. This allows clicking
on the current location in the sidebar to quit global search.
2024-02-05 15:53:09 +00:00
António Fernandes 2462849f7f placessidebar: Don't ignore clicks on current location
We have been ignoring clicks on the sidebar item which corresponds to
the current locations, in order to avoid refreshing the view when
something is selected.[0]

However, this bug has been recently fixed in a more effective way by
commit 2b5321660f

Stop ignoring these clicks, because we need to know about them in
order to cancel global search.

This effectively reverts the following changes:

* commit 328cbdde47
* commit 7c760d4bf9

[0] https://gitlab.gnome.org/GNOME/nautilus/-/issues/2960
2024-02-05 15:53:09 +00:00
António Fernandes ce47e61372 files-view: Don't "smooth" global search
Otherwise the current folder items show up for a moment.
2024-02-05 15:53:09 +00:00
António Fernandes ff70e5702b files-view: Don't offer to make search global
These floating buttons conflict with floating status bar and their
implementation is glitchy. Also, with the introduction of the global
search mode, the new design guidance asks for their removal.

Instead, allow the new global search action to reuse the existing
local query but run it anew with a global scope.

The "Search Everywhere" button on empty local search results page
is preserved, but made to perform the exact same action.

This effectively reverts commit 67194751aa
2024-02-05 15:53:09 +00:00
António Fernandes 90c79b6a08 toolbar: Reserve space for hidden buttons
In global search mode, history and folder search buttons are hidden.

This causes the searchbar moves to expand its width because a hidden
widget doesn't allocate space.

This resizing of the search entry is obviously undesirable.

As a workaround, don't toggle GtkWidget:visible but, instead, use
a stack to swap the buttons for an empty box to act as their shadow.
The homogenous stack ensure the button alocated space is preserved.
2024-02-05 15:53:09 +00:00
António Fernandes 2660b4a12f window-slot: Introduce global search mode
Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3013
2024-02-05 15:53:09 +00:00
António Fernandes 557724b390 files-view: Don't dim status pages
This custom style makes the Search Settings buttons look insensitive.

Let's just use default status page styling.

This effectively reverts commit d4d3902dbd
2024-02-05 15:53:09 +00:00
António Fernandes 915c4b1558 query-editor: Use new icons
As per design mockups. The search original icon is going to be used for
a new button which opens the global search mode, and as a prefix icon
is that mode.

Also update tooltip accordingly.
2024-02-05 15:53:09 +00:00
António Fernandes b0910539fe window-slot: Add stack widget
For the global search mode we are going to need to cover contents,
including location banners, with a status page.

We currently derive from a box, and GtkStack is final, so instead
derive from AdwBin, have its direct child be a stack, then add a
vertical box to the stack.
2024-02-05 15:53:09 +00:00
António Fernandes 9a51af8442 window-slot: Always hide search bar when changing location
We have code which tries not to hide the search entry in case the user
opens it and, before inserting any query, decides to switch location.
This was introduced by commit 9ab3c5c7d7

According to that commit message, it was restoring an old behavior that
was lost during a refactoring. I did not confirm this nor track the
original reason for this behavior, but, if I had to guess, I'd say it
comes from before "just-type" search was introduced. Otherwise, why go
to the trouble of keeping the search entry visible when you can just
type anyway?

I see no reason to assume the location change means they want to search
another location. They may have just recalled the exact path they were
looking for, so they lost the reason to search.

Anyway, this behavior is not working at all in recent versions. Not
sure when it stopped working, but apparently nobody has missed it.

Least this dead code interfere with the upcoming global search mode,
let's remove it.
2024-02-05 15:53:09 +00:00
António Fernandes 2ffc3dadef files-view: Enhance empty global search results page
Offer to open the search location settings.
2024-02-05 15:53:09 +00:00