Commit graph

22545 commits

Author SHA1 Message Date
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
António Fernandes f0ce14cc90 batch-rename-dialog: Don't use GtkContainer::add()
Instead of creating GtkListBoxRows directly, we can just create their
child widget and use GtkListBox::insert() method directly.

This prepares for GTK4, where GtkContainer is gone.
2021-11-03 00:52:26 +00:00
António Fernandes 85e7023256 batch-rename-dialog: Don't keep a list of rows
We already have a list of their children, so we can just call
GtkWidget::get_parent().

This prepares for the next commit to drop direct rows creation.
2021-11-03 00:52:26 +00:00
António Fernandes 804a55fbbe batch-rename-dialog: Don't add separator above first row
It doesn't look good.
2021-11-03 00:52:26 +00:00
António Fernandes 02a2fe8c42 batch-rename-dialog: Remove always TRUE boolean param/data 2021-11-03 00:52:26 +00:00
António Fernandes bb35400a85 batch-rename-dialog: Don't recreate separator if one exists already 2021-11-03 00:52:26 +00:00
Ernestas Kulik bc2cb5e15b batch-rename-dialog: Don't use gtk_widget_get_preferred_height()
The functions for getting the width and height separately are gone
in GTK4. When not using them for height-for-width/width-for-height
measurements, they can be trivially replaced with get_preferred_size().

Rebased and ammended by António Fernandes <antoniof@gnome.org>
2021-11-03 00:52:26 +00:00
Ernestas Kulik 33ff2defe4 batch-rename-dialog: Replace GtkStateType with GtkStateFlags
The former has been deprecated since 3.14.
2021-11-03 00:52:26 +00:00
Peter Eisenmann dbeeec0534 rename-file-popover: implement redesign
Implements Alan's proposed redesign for the rename dialog,
that also allows displaying longer file names.

Implements GNOME/nautilus#1986

Relates GNOME/nautilus#46
2021-11-03 00:43:31 +00:00
Peter Eisenmann 906151b4ac rename-file-popover: update ui file syntax
Regenerate the .ui file with Glade 3.38.2, without any actual changes.
This updates the syntax to use dashes instead of underscores, so that
future edits of the file don't have cluttered commit diffs due to these
automatic changes.
2021-11-03 00:43:31 +00:00
Ondrej Holy 5cc496ae59 Post branch version bump 2021-10-30 09:11:46 +02:00
Ondrej Holy ca5283a520 Release version 41.1 2021-10-30 09:08:22 +02:00
António Fernandes 4b3f118499 files-view: Clean up submenus update code
Use autocleanup. Remove empty lines. Rename symbols. Rearrange early return.
2021-10-30 06:33:25 +00:00
António Fernandes 2804732d62 files-view: Only refresh Scripts menu if needed
Same rationale as for Templates.

But, in this case, we don't have a cache ready to use.

So, keep a cache of the menu model in the private instance data.
No need for a GObject property in this case.

Also, remove scripts_present boolean, now that we can directly check
whether the scripts_menu is present (i.e., not NULL).
2021-10-30 06:33:25 +00:00
António Fernandes 4a44f3d922 files-view: Only refresh New Document menu if needed
Menus are updated very frequently. Each time, we read the Templates
directory tree and recreate a menu model from which we generate the
New Document menu that's shared between the background context menu
and the current location menu in the pathbar.

This is wasteful and may cause noticeable UI lag if the Templates
directory has got a lot of files and subdirectories.

We already have a file monitor in place which notifies us when the
content of the Templates directory actually changes, so we can rely
on it to know when we need to read the directory again, and, in the
remaining situations, we can use the cached menu model.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1069
Relates to https://gitlab.gnome.org/GNOME/nautilus/-/issues/1705
2021-10-30 06:33:25 +00:00
António Fernandes a520e27048 files-view: Clear :templates-menu if it should not be used
If the templates dir is set to Home, then it should not be used.
We set the priv->templates_present boolean to FALSE in that case,
but forget to set the :templates-menu property to NULL too.

Fix that corner case issue. Also, drop the useless boolean and
just check directly whether the menu is present (i.e. not NULL).
2021-10-30 06:33:25 +00:00
António Fernandes 6afce418af trash-bar: Ellipsize subtitle label
The subtitle label is long and may be even longer in some locales.

As a result, a wide minimum width is forced on the whole window, which
is not desirable.

So, make it ellipsize and also add a tooltip.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2012
2021-10-27 13:21:18 +01:00
Albert Vaca Cintora 42b0362e98 build: Remove incorrect i18n.merge_file argument
The positional argument was being silently ignored until meson 0.60.0 where
it fails with "ERROR: Function does not take positional arguments".

See: https://github.com/mesonbuild/meson/issues/9441
2021-10-26 13:58:38 +00:00
António Fernandes bc3edaa0b2 file-conflict-dialog: Don't change action when unchecking
The "Apply this action to all files and folders" checkbox works only
with the "Replace" action, not the "Rename" action. Indeed, if the
rename field is expanded, the checkbox is greyed out.

However, if the checkbox is checked, when unchecking it changes the
main action to Rename, despite the rename field being obviously
hidden (otherwise the checkbox wouldn't be checked). That's wrong.
It's a regression from 15d59cd18d

When the checkbox is unchecked, the action is already "Replace", so
there is no need to change it.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1889
2021-10-26 12:29:34 +00:00
Rūdolfs Mazurs 8aabca16fd Update Latvian translation 2021-10-25 18:09:57 +00:00
Ondrej Holy 14a41b7168 file-operations: Remove obsolete TODO statement
I think that this code is a quite stable after 13 years of production,
so this TODO statement can be probably removed :-D
2021-10-25 14:44:25 +00:00
Ondrej Holy c3b8e0d6de file-operations: Fix progress when skipping during extraction
The progress is wrong when extracting multiple files and some of them
are skipped. Let's try to fix this.
2021-10-25 14:44:25 +00:00
Ondrej Holy d4e00000d4 file-operations: Do not offer skipping when extracting one file
In case of extraction failure, the "Skip" and "Cancel" actions are offered
everytime, but skipping doesn't make sense when extracting one file only.
Let's use the same approach as it is used also for other operations, which
is based on total number of files and remaining files. Also the "Skip All"
action will be offered as a side-effect of this change.
2021-10-25 14:44:25 +00:00
Ondrej Holy bdd317d999 file-operations: Simplify output files handling when extracting
Currently, output files are checked for existence. But the files are
explicitely deleted in the case of extraction failure, so this extra
check is no more needed. Let's drop the redundant check and just update
the list when deleting the files.
2021-10-25 14:44:25 +00:00
Ondrej Holy d09b34cde2 file-operations: Remove leftover files after extraction failure
Empty, or corrupted files are left in the output directory in the case
of extraction failure, e.g. when wrong password is supplied. This is
in most cases undesired. Let's recursively delete all the leftover
files in the case of extraction failure.

Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1954
2021-10-25 14:44:25 +00:00
eshagh shahidani 83f1153e78 Update Persian translation 2021-10-21 00:08:13 +00:00
Selyan Slimane AMIRI 1629afff89 Update Kabyle translation 2021-10-16 13:18:40 +00:00
Sveinn í Felli f157a2892b Update Icelandic translation 2021-10-12 22:31:35 +00:00
Ondrej Holy cf9d7a6ebb ci: Make the update image job work with fedora:latest
For some reason, "buildah login" is not enough with fedora:latest
and "buildah push --creds" needs to be used to make it work again.
2021-10-11 06:45:26 +00:00
Ondrej Holy 7b469dfa87 ci: Use lineup-parameters python script
The lineup-parameters.c is hard to use with meson. Let's use the python
rewrite from
https://gitlab.gnome.org/GNOME/epiphany/-/blob/master/data/lineup-parameters
instead.
2021-10-11 06:45:26 +00:00
Ondrej Holy 44d574e176 ci: Remove fedora job
The fedora job was there before the flatpak job. But now we relies on
flatpak job and the fedora job doesn't really give much benefits. It is
rather waste of runners and maintainers time. Let's remove it.
2021-10-11 06:45:26 +00:00
Ondrej Holy 78275a7180 ci: Remove flatpak master job
The flatpak master job seems to be redundant currently. It uses the same
image as flatpak devel and their .yml files are equal. The two flatpak jobs
are relict from the times when GNOME SDK was unstable and broke CI often,
which is no more true. Let's remove the flatpak master job.
2021-10-11 06:45:26 +00:00
Ondrej Holy bb5a72d685 ci: Do not run style check on stable branches
The style check job currently fails on stable branches since the recent
uncrustify change. We could use older image on stable, or backport the code
changes, but I think that the style check job on stable branches is not
actually needed. Let's disable the style check job on stable branches to
fix pipeline there and avoid this situation in the future.
2021-10-11 06:45:26 +00:00
Alexander Shopov 5259ea812b Update Bulgarian translation 2021-10-09 13:49:07 +00:00
eshagh shahidani 3219ef45d2 Update Persian translation 2021-09-27 15:46:21 +00:00
Ngọc Quân Trần 25f839fb3d Update Vietnamese translation 2021-09-26 01:08:12 +00:00
eshagh shahidani b2dbfe0710 Update Persian translation 2021-09-21 10:41:04 +00:00
Марко Костић b845728f13 Update Serbian translation 2021-09-20 18:53:03 +00:00
eshagh shahidani cd1efc38c5 Update Persian translation 2021-09-20 13:04:40 +00:00
Clyde Laforge f3b1a74966 compress-dialog: Set keyboard focus on the row with the selected archive format
Currently the keyboard focus for the type of archive choice is always on
the first element.

This patch allows the focus to be on the currently selected item instead.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1944
2021-09-18 14:11:30 +00:00
Źmicier Turok e607df6c20 Update Belarusian translation 2021-09-18 10:17:32 +00:00
Ondrej Holy 6737425d9c Post release version bump 2021-09-17 13:16:43 +02:00
Ondrej Holy 9991d5a8c0 Release version 41.0 2021-09-17 13:16:43 +02:00
Ondrej Holy f5b9018f2c flatpak: Pin gexiv2 and exiv2 dependencies to fix build
The flatpak build currently fails because of gexiv2 build failure, which is
a problem for our contributors and among others breaks our CI pipeline. The
potential fix is available already for a couple of days on
https://gitlab.gnome.org/GNOME/gexiv2/-/merge_requests/63 but not yet merged.
Let's temporarily pin the gexiv2 and exiv2 dependencies to the stable branches
to fix those issues.
2021-09-17 12:56:00 +02:00