Commit graph

24968 commits

Author SHA1 Message Date
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
António Fernandes c0d748464e query: Provide is_global() method
This is more explicit and convenient than getting a temporary location
reference just to compare it to NULL.

Use it where appropriate. More uses in up comming patches.
2024-02-05 15:53:09 +00:00
António Fernandes 558378db73 dbus-launcher: Don't leak variant on error
Usually, g_dbus_proxy_call() sinks the floating reference for us.

However, if there is an error creating the proxy, we leakit.

Instead of relying on the code calling this API to do the right thing,
let's sink the floating here reference and cleanup automatically.
2024-02-05 15:00:13 +00:00
António Fernandes a5048afb1b query-editor: Create query even if location is NULL
We have been hitting warnings about NULL queries when doing
global searches, and this was the cause.

There is no good reason not to create a query, even if we are
not going to use it. Fix this before we make global search
more prominent.
2024-02-05 14:06:05 +00:00
António Fernandes 49c4366aef query-editor: Ensure clear button is hidden when empty
We have an idle callback to deal with search text changes while
avoiding performance impact. We also freeze this completely if
the text changes are done programatically and not from user
typing.

But the idle callback is also responsible for hiding the clear
icon, which means we don't hide it if the entry is cleared
programatically (e.g. when leaving search using the Escape key
or the toggle button in the headerbar).

Since there is no performance cost to changing this visibility
of the child widget, we can just move this code to the synch
hanlder, before the change_frozen interrupt.
2024-02-05 14:06:05 +00:00
Khalid Abu Shawarib a10392c77e query-editor: Fix null dereference
This conjunction makes no sense and might even lead to NULL pointer
dereference. This bug has been introduced just after the GTK4 port,
by commit 45c77d2466

Just make it a disjunction. This allows the clear button to correctly
hide when the user clear the text.
2024-02-05 14:06:05 +00:00
Bart Gravendeel 004eb08302 file-operations: Improve permanent removal dialog strings 2024-02-05 12:01:51 +00:00
Artur S0 514b1e25bf Update Russian translation 2024-02-05 07:21:50 +00:00
Khalid Abu Shawarib 94f5a83113 progress-indicator: Align popover to be inside the window 2024-02-04 18:39:18 +00:00
Khalid Abu Shawarib 7e530b512e progress-indicator: Use top position in collapsed mode 2024-02-04 18:39:18 +00:00
Corey Berla 95f3db44c8 files-view: Add gestures to open background menu in empty view
Commit c653f88090 ("list-base: Don't inherit from NautilusFilesView")
broke our ability to right click on an empty view to open the background
context menu because the list-base is no longer a child of files-view.
We could move the gestures from list-base to files-view, but that's
problematic not only because of the weird hack we use (to deny
background click after clicking on a view item, but also because we
might want to not allow background click (for example in the network
view), and claiming the background click in such a view would
interrupt the gesture for the underlying view (i.e. GtkListView).

So let's take the path of least resistance and just add the gesture
on the empty state itself.

Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/3281
2024-02-04 16:00:07 +00:00
Khalid Abu Shawarib ec6cd1dfd9 ci: update deprecated gtk option 2024-02-03 14:57:02 +00:00
N.Pranav Krishna 644617c607 general: Stop using deprecated gtk_widget_translate_coordinates
Changed to gtk_widget_compute_point() and handle error cases.

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

(Rebased and amended by Khalid Abu Shawarib <khalid.shawarib AT gmail.com>)
2024-02-03 14:07:29 +00:00
Peter Eisenmann a394a39bf0 location-entry: clear entry on edit of internal path
Fixes #3293
2024-02-02 23:34:06 +00:00
Peter Eisenmann 3cc4680a19 scheme: add check for internal schemes 2024-02-02 23:34:06 +00:00
Anton Snigirev 44fb22d054 properties-window: fix display parent folder of multi-files
Show "Parent Folder" row only if all files have the same parent.

Fixes #3238
2024-02-02 13:08:31 +00:00
Corey Berla 0286647939 file-operations: Increment unique filename count
A regression in commit d4526131c1 ("filename-util: add conflict
name creation helper") causes an infinite loop when creating a
file (i.e. from template) where the suffix needs to increment.
This also led to an unexpected behavior of causing the first
duplicate to be suffixed with (1) instead of (2).

Pre-increment the counter to avoid the infinite loop and
start a (2).
2024-01-31 09:15:33 -08:00
António Fernandes 52ecd5e69e progress-info: Use smaller finished/cancelled icons
The existing icons feel cramped inside the progress circle.
Use smaller versions.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3288
2024-01-31 16:13:07 +00:00
António Fernandes 8e42d9fd48 window-slot: Don't duplicate bookmark in back list
This may happen when opening item location from results of the same
directory, because location changes (from search to directory) but
the history bookmark doesn't (because search is never a bookmark in
history).

So, explicitly prevent prepending the head of the back list to the
list itself a second time, which duplicates the entry unnecessarily
and generates warnings.
2024-01-31 10:46:35 +00:00
António Fernandes 9b644d7e92 window-slot: Don't offer to go back to nowhere
Adding a NULL location to history may happen in a corner case as a
result of search not being added to history anymore. This would lead
to a crash when trying to go back. So, prevent this from happening.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3285
2024-01-31 10:46:35 +00:00
Ondrej Holy c387235f61 ci: Allow to run pipeline manually from web
The manually started pipelines over the Run pipeline button are currently
blocked. Let's enable them again so one can e.g test Dockerfile changes
without merging them first.
2024-01-31 08:19:36 +01:00
Ondrej Holy df12cb3474 dockerfile: Install glslc package
The update-image job fails currently because gtk4 needs glslc executable.
Let's install tha glslc package.
2024-01-31 08:03:13 +01:00
Automeris naranja 94d2d80fd2 column-chooser: Put AdwBanner and AdwPreferencesPage inside a GtkBox
AdwBanner isn't a toolbar and AdwToolbarView won't be able to style it correctly.
2024-01-30 22:50:30 -03:00
Automeris naranja c3bd67c6df column-chooser: Port column rows to AdwSwitchRow
Except the name row, which stays an AdwActionRow.
2024-01-31 01:33:52 +00:00
kramo dc933b25f9 properties: Add drop shadow to file icons 2024-01-31 01:28:16 +00:00
Corey Berla e806c29d71 file-utilities: Remove unused function 2024-01-31 01:23:33 +00:00
António Fernandes 8574b5e199 window: Fix typos in comments 2024-01-31 01:23:33 +00:00