Commit graph

22588 commits

Author SHA1 Message Date
Goran Vidović
2c65d3e5ff Update Croatian translation 2021-11-19 15:56:22 +00:00
António Fernandes
7e3dab1f52 operations-ui-manager: Port passphrase dialog to GtkBuilder
This removes usage of the GtkContainer API, preparing for GTK4.
2021-11-19 08:36:50 +01:00
Ondrej Holy
9e4e95395b file-operations: Simplify archive password dialog handling
Our AutoarExtractor::request-passphrase handler implements in invoking
the main context for the dialog from an operation thread.

This duplicates existing code that caters the same use case for the
file conflict dialog (using the `invoke_main_context_sync()` function).

Let's move the code handling of the password dialog into the
`src/nautilus-operations-ui-manager.c` file to make use of
`invoke_main_context_sync()`.

Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1829
2021-11-19 08:36:00 +01:00
Danial Behzadi
e95cb881c0 Update Persian translation 2021-11-18 22:50:35 +00:00
Quentin PAGÈS
33bd031824 Update Occitan translation 2021-11-17 18:10:05 +00:00
Rajat Jain
a3369c5a4b file: use specific file type for Sort by Type
Adds file comparison based on actual file type, rather than generic
type category. For example .jpg and .png files will now be sorted
into two different groups.

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

Signed-off-by: Rajat Jain <rajatjain.ix@gmail.com>
2021-11-16 17:56:31 +00:00
Joshua Lee
b002cb626d file-conflict-dialog: Prevent rename button appearing prematurely
Commit 38803058cb introduced calls to
gtk_widget_show_all(), which causes the 'Rename' button to appear prematurely
when the dialog is created. Fix this by using gtk_widget_show() instead.

Take this opportunity to modify the call when creating the app chooser dialog
too as gtk_widget_show_all() doesn't exist in GTK 4.
2021-11-16 17:15:17 +00:00
Yaron Shahrabani
d9374912b2 Update Hebrew translation 2021-11-15 13:46:50 +00:00
Yaron Shahrabani
ad2d4a5ead Update Hebrew translation 2021-11-15 13:45:14 +00:00
Yuri Chornoivan
1857076401 Update Ukrainian translation 2021-11-14 20:38:20 +00:00
DillyPickly
e6c0b65ccc files-view: Fix "Copy To" from "Starred" folder
"Copy To" or "Move To" dialog starting from the current location.

However, if the current location is starred://, GtkFileChooserDialog
prompts an error message "The specified location is not supported".

Instead, while in the Starred location, use the actual parent of the
selected item as a starting location for the "Copy To" dialog.

Fixes: #1243
2021-11-14 11:58:38 +00:00
Marco Trevisan (Treviño)
305985f209 shell-search-provider: Cancel metadata requests on disposal
Keep track of the nautilus_file_list_call_when_ready calls we performed
and and stop them on disposal, returning empty values on dbus invocations.
2021-11-14 09:29:29 +00:00
Marco Trevisan (Treviño)
5441744011 shell-search-provider: Don't return search provider results on disposal
If the search provider is disposed while searching, just stop cancel
the search without sending to the shell any result.
2021-11-14 09:29:29 +00:00
Hugo Carvalho
6fe1663b32 Update Portuguese translation 2021-11-13 15:37:31 +00:00
Peter
b151025d3e directory: Use finite amount of tries for self check
Turn potentially infinite while loops into for loops with finite
amount of repetitions. In general 1000 tries should be sufficient,
so the chosen amount of 100.000 serves as an upper limit.

See https://gitlab.gnome.org/GNOME/nautilus/-/issues/1290
2021-11-13 13:18:44 +00:00
António Fernandes
2103a487a0 files-view: Simplify select-items.ui
Remove usage of properties that are gone in GTK4, such as border-width.
Also, move the "Pattern:" label above the entry, drop the colon and
make it bold.
2021-11-13 12:22:59 +00:00
Apoorv Sachan
28ce30df03 files-view: Port Ctrl+S dialog to use GtkBuilder
Now the Ctrl+S dialog is being built using the
GtkBuilder API, Now it's styling and can be
handled in the XML UI definition. The UI definiton
needs to be handled manually as Glade doesn't handle
the implementation of the GtkDialog used here.
2021-11-13 12:17:07 +00:00
António Fernandes
38803058cb operations-ui-manager: Stop using gtk_dialog_run()
It's going to be unavailable in GTK 4.

Thanks to the previous commit, we can use GtkDialog::response instead.

Part of https://gitlab.gnome.org/GNOME/nautilus/-/issues/1992
2021-11-12 14:12:36 +00:00
António Fernandes
19782f41e5 operations-ui-manager: Refactor main context task completion
invoke_main_context_sync() wraps the boilerplate needed for the file
operations thread to trigger UI dialogs and wait for their feedback.

It assumes that the UI task is completed by the time the invoked
function returns. This assumption presumably stems from the expected
usage of gtk_dialog_run().

However, gtk_dialog_run() is gone in GTK 4, so we should stop making
that assumption. Let's introduce an explicit way to signal that the
task is completed, such that it can be used either before or after
the wrapped function returns.

This will enable us to drop gtk_dialog_run() later. It will also
help with https://gitlab.gnome.org/GNOME/nautilus/-/issues/1829
2021-11-12 14:12:36 +00:00
Goran Vidović
1a8e28347c Update Croatian translation 2021-11-12 11:04:03 +00:00
Yuri Chornoivan
1a3d218f2e Update Ukrainian translation 2021-11-12 04:58:05 +00:00
António Fernandes
1c83d6af8b general: Stop overriding GtkWidget.destroy()
It's gone in GTK4.

Anything we are doing on ::destroy can be done on ::dispose().
Extra care must be taken, however, because GObject.dispose() may be
run multiple times.

Also, while we are at it, move some object unreferencing from
.finalize() to .dispose(), which is where we should do it.
2021-11-12 01:40:53 +00:00
António Fernandes
1acded8c0c files-view: Stop using NULL slot as destruction flag
We already have a boolean to query whether we are in destruction.
2021-11-12 01:40:53 +00:00
Ernestas Kulik
a2d5dafa05 general: Use GtkButton as a container
GtkButton lost its GtkImage-related API in GTK4, and should be used as
a regular container.

Note #1: In x-content-bar.c, this requires using gtk_box_pack_start()
and gtk_container_add(), which must later be replaced, respectively,
by gtk_box_preopend() and gtk_button_add_child() when switching to
GTK4. However, it's worth refactoring the code in advance such that
we can simply find and replace funciton calls later.

Rebased and ammended by António Fernandes <antoniof@gnome.org>
2021-11-12 01:40:39 +00:00
Ernestas Kulik
f3e1d8a46e ui: Hide state overlays by default
They need to be shown by code anyway. This prepares for GTK+ 4, where
widgets are shown by default unless explicitly hidden.

Rebased and ammended by António Fernandes <antoniof@gnome.org>
2021-11-12 01:40:06 +00:00
António Fernandes
71c96cd31a general: Stop using the state argument of GtkStyleContext getters
As per https://docs.gtk.org/gtk4/migrating-3to4.html#stop-using-the-state-argument-of-gtkstylecontext-getters
2021-11-12 01:40:05 +00:00
António Fernandes
8c31d783ba general: Use envar to make warnings fatal in scripts
Same rationale as last commit.
2021-11-12 01:40:05 +00:00
Ernestas Kulik
6ff4762628 meson.build: Use environment to make warnings fatal
--g-fatal-warnings no longer exists in GTK 4.
2021-11-12 01:40:05 +00:00
Yaron Shahrabani
65315a08b4 Update Hebrew translation 2021-11-11 22:09:38 +00:00
Joshua Lee
1d08e0c832 file-conflict-dialog: Improve expander appearance
Add a margin between the expander and the rename entry and use the
linked style class for the entry and its reset button.
2021-11-11 19:23:29 +00:00
Joshua Lee
47475b174d file-conflict-dialog: Improve heading style
Use GTK's title-2 style class for the primary header and centre the secondary
header. Also remove the unneeded custom CSS.
2021-11-11 19:23:29 +00:00
Joshua Lee
e1ade201dc file-conflict-dialog: Port to GtkBuilder
Modify the dialog to be built declarartively to enhance maintainability and aid
in porting to GTK 4.

This introduces a minor UI change with the 'Replace'/'Rename' and 'Skip'
buttons swapping places, with the suggested action now the endmost button as
is standard practice.
2021-11-11 19:23:29 +00:00
Joshua Lee
2e5d113e59 file-conflict-dialog: Drop full-color icon
Such use of full color icon used to be common place, but it's outdated.

This also obliviates the need for the parent horizontal GtkBox.
2021-11-11 19:23:29 +00:00
António Fernandes
f8e0213083 file-conflict-dialog: Drop image from text button
The button has a label and always-show-image is False by default.

As a result, the image is never actually used.

It's useless and the API is going away in GTK 4 so just remove it.
2021-11-11 19:23:29 +00:00
António Fernandes
c3d0406423 file-conflict-dialog: Set 18px margin as per HIG
Also, remove 2 usages of GtkContainer:border-width, which is going to
help with porting to GTK4.
2021-11-11 19:23:29 +00:00
Goran Vidović
bcca4cff6a Update Croatian translation 2021-11-11 10:40:48 +00:00
António Fernandes
022a075dd9 list-view: Build column editor with GtkBuilder
Keeping with the direction of preferring declarative UI definitions.
Also, it will help with porting to GTK4.

While we are at it, adopt HdyWindow for rounded corners and make
the label not bold and allow it to wrap (to avoid making the dialog
too wide with some translations).
2021-11-08 22:45:22 +00:00
António Fernandes
a9fda5ad5c column-chooser: Move some function definitions
It's more usual to find the ::class_init() definition near the end,
and it avoids a large number of forwards declarations.
2021-11-08 22:45:22 +00:00
António Fernandes
1cf68176ae column-chooser: Build interface from template XML
Keeping with the direction of preferring declarative UI definitions.

Also, it will help with porting to GTK4.
2021-11-08 22:45:22 +00:00
Jordi Mas i Hernandez
0eb2dae88c Update Catalan translation 2021-11-08 20:34:23 +00:00
António Fernandes
b2c67de28a flatpak: Pin libportal dependency
Changes in libportal main branch break the CI and require dependency
changes which we shouldn't make on stable branch.

(cherry picked from commit 67927cb09b)
2021-11-08 20:18:06 +00:00
Hugo Carvalho
e74009b1ff Update Portuguese translation 2021-11-07 19:33:20 +00:00
Quentin PAGÈS
6b0bc70505 Update Occitan translation 2021-11-07 19:21:54 +00:00
Fabio Tomat
f19000014f Update Friulian translation 2021-11-07 09:46:25 +00:00
eshagh shahidani
3270f73af8 Update Persian translation 2021-11-06 21:00:22 +00:00
eshagh shahidani
4b990c446b Update Persian translation
(cherry picked from commit 60d2f4b785)
2021-11-06 17:18:45 +00:00
Yuri Chornoivan
7512a432d5 Update Ukrainian translation 2021-11-05 18:27:36 +00:00
Rafael Fontenelle
7188a047e2 Update Brazilian Portuguese translation
(cherry picked from commit 8c0700ea48)
2021-11-03 17:22:52 +00:00
Hugo Carvalho
f291480227 Update Portuguese translation
(cherry picked from commit bcd971d179)
2021-11-03 12:24:34 +00:00
Ondrej Holy
79dca04bc5 persistence-handler: Drop the word successfully from notification
The notification is shown when all operations are completed and Nautilus doesn't
have a focus. It says that "All file operations have been successfully completed".
This is shown also when some errors were skipped. So the word "successfully"
is a bit misleading. Let's drop that word from the notification.

Relates: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1953
2021-11-03 01:00:51 +00:00