Commit graph

19356 commits

Author SHA1 Message Date
Alexandru Pandelea be12a75100 Implement batch renaming
Renaming multiple files at once has been a missing feature in Nautilus
for a long time. This patch implements that feature in the following way:

This operation is launched in the same way as the rename one, when the
selection has more than one file.

When the batch renaming is launched, a dialog is shown, offering two
modes.

In the first mode, the user can use metadata (if available), numbering and
original file name tags to create the new names. Between the tags, there
also can be written normal text, which will be added in the new names. If
numbering is used, the order of the files can be modified by using several
criteria.

In the second mode, the user can replace an existing part of the name.

https://bugzilla.gnome.org/show_bug.cgi?id=768311
2016-08-29 13:02:50 +03:00
Carlos Soriano d296183010 shell-search-provider: remove simple engine recursivity
In 26a3ab4cd5 we put recursivity to the simple search engine in order
to fix the report of some users that weren't getting files inside
folder of home directory.

However this is wrong, since it takes too long and gnome-shell search
provider doesn't have a way to get partial results or close the search
when done, which makes Nautilus not reporting results until the search
is done, and in case the user stops the shell search, nautilus keeps
searching making the CPU consumption really high.

In fact, we always made recursivity for tracker but not for the simple
engine when performing the shell search.

The issue users were experiencing seems unrelated to this, and I
actually cannot reproduce, so let's return to the regular behaviour
we had.

https://bugzilla.gnome.org/show_bug.cgi?id=766174
2016-08-29 10:59:06 +02:00
Alessandro Bono 5fa030f656 nautilus-toolbar: use max-content-height
https://bugzilla.gnome.org/show_bug.cgi?id=754614
2016-08-29 10:03:18 +02:00
Baurzhan Muftakhidinov 09c0625d03 Updated Kazakh translation 2016-08-28 17:21:06 +00:00
Jordi Mas 4d4840a7fc Update Catalan translation 2016-08-27 14:24:29 +02:00
Rafael Fontenelle 6ff6566071 Updated Brazilian Portuguese translation 2016-08-26 19:00:05 +00:00
Fabio Tomat 0a110b4b5b Updated Friulian translation 2016-08-26 14:47:54 +00:00
Fabio Tomat e7a0c0bd04 Updated Friulian translation 2016-08-26 14:38:12 +00:00
Jiri Grönroos 2b982f7218 Updated Finnish translation 2016-08-26 10:42:28 +00:00
Matej Urbančič b463d68dfb Updated Slovenian translation 2016-08-25 21:16:50 +02:00
Razvan Chitu 2a908cc9ff file-operations: fix crash on compression error
One of the error dialog strings was statically allocated, but the dialog
function attempts to free it. In order to fix this, newly allocate a copy of the
string.

https://bugzilla.gnome.org/show_bug.cgi?id=770353
2016-08-25 00:11:42 +03:00
Razvan Chitu a8a889a7e4 file-undo-operations: fix extract undo and redo descriptions
The undo description is reassigned the description for the redo operation. Fix
this by correctly assigning the redo description.

https://bugzilla.gnome.org/show_bug.cgi?id=770305
2016-08-24 23:36:07 +03:00
Balázs Úr 438de8a1ce Updated Hungarian translation 2016-08-24 19:06:42 +00:00
Ingmars Dirins ce3ca7559a Update Latvian translation 2016-08-24 21:51:10 +03:00
Daniel Mustieles 0afeb875d5 Updated Spanish translation 2016-08-24 10:05:24 +00:00
Flo H 502639b571 Updated German translation 2016-08-23 21:04:22 +00:00
Ernestas Kulik aeb8a9ce25 configure.ac: fix gnome-autoar dependency
The gnome-autoar pkg-config files now have a version suffix.
2016-08-23 21:05:47 +03:00
Piotr Drąg f37bddc8c8 Updated Polish translation 2016-08-23 19:34:12 +02:00
Akom Chotiphantawanon 9d00e5f031 Updated Thai translation 2016-08-23 22:53:16 +07:00
Marek Černocký 2a48b0cad4 Updated Czech translation 2016-08-23 15:25:10 +02:00
Razvan Chitu c81d968fa8 file-undo-operations: add plural support for strings
The compression and extraction undo / redo strings lacked plural support.

https://bugzilla.gnome.org/show_bug.cgi?id=770270
2016-08-23 15:46:20 +03:00
Marek Černocký 90a9fd8542 Updated Czech translation 2016-08-23 13:37:45 +02:00
Balázs Meskó a43c375f67 Updated Hungarian translation 2016-08-23 11:10:14 +00:00
Daniel Mustieles 3a6e8dc397 Updated Spanish translation 2016-08-23 11:06:08 +00:00
Piotr Drąg ca6d850001 Updated Polish translation 2016-08-23 12:02:09 +02:00
Piotr Drąg 83474f220d Fix typos in translatable strings 2016-08-23 12:00:22 +02:00
Jordi Mas 34f829cbdc Update Catalan translation 2016-08-23 07:46:29 +02:00
Piotr Drąg 41d81684c4 Update POTFILES.in 2016-08-22 23:56:37 +02:00
Razvan Chitu d0934dbe53 file-name-widgets: use a revealer to display errors
Each file name widget has an error label for displaying error messages. However,
when there is no error, the label just takes up space for no reason. In order to
fix this, use a revealer to display error messages.

https://bugzilla.gnome.org/show_bug.cgi?id=770199
2016-08-23 00:37:17 +03:00
Razvan Chitu e9efd047b2 files-view: add menu action and dialog for compression
Add an context menu action for compression and a dialog for selecting the file
name and compression format. Add a controller class for managing the compression
dialog.

https://bugzilla.gnome.org/show_bug.cgi?id=770199
2016-08-23 00:37:17 +03:00
Razvan Chitu 9d8de33448 general: add a setting for the default compression format
The compression operation allows multiple formats to be selected. It would be
good to store the last choice of the user in order to select it for future
operations.

https://bugzilla.gnome.org/show_bug.cgi?id=770199
2016-08-23 00:37:17 +03:00
Razvan Chitu 918f2b6163 file-operations: implement compression operation
Add an operation for compressing files using gnome-autoar. The operation is
similar in functionality to the one offered by file roller but comes with
integrated progress feedback and support for undoing and redoing.

https://bugzilla.gnome.org/show_bug.cgi?id=770199
2016-08-23 00:37:17 +03:00
Razvan Chitu 51dbfc9778 general: add preference for automatic decompression of archives
Make extraction the default action for activating selected archives and add an
option to open them instead of extracting.

https://bugzilla.gnome.org/show_bug.cgi?id=768646
2016-08-23 00:36:56 +03:00
Razvan Chitu 9f0c9a9f12 files-view: add context menu actions for extracting files
The context menu actions are similar to the ones offered by file-roller, but
make use of the internal extract operation.

https://bugzilla.gnome.org/show_bug.cgi?id=768646
2016-08-23 00:36:56 +03:00
Razvan Chitu 211bfdfd53 files-view: use a hashset for newly added locations
There is no hash set in GLib, so we have to use GHashTable. However there are
functions that allow to use the hash table as hash set. Use that instead of the
regular hash table functions.

https://bugzilla.gnome.org/show_bug.cgi?id=768646
2016-08-23 00:36:56 +03:00
Razvan Chitu 895ec57abe file-operations: implement extract operation
Add a new operation for extracting archives using gnome-autoar.

https://bugzilla.gnome.org/show_bug.cgi?id=768646
2016-08-23 00:36:56 +03:00
Razvan Chitu 8d9a036aa1 file-utilities: refactor ensure_unique_file_name
The function works with strings instead of GFiles. Replace it with a function
that generates unique files in a directory using GFiles.

https://bugzilla.gnome.org/show_bug.cgi?id=768646
2016-08-23 00:36:56 +03:00
Razvan Chitu fd01842f99 file-conflict-dialog: separate file logic from UI management
In Nautilus, file conflicts are handled by a specific dialog. Previously, the
dialog class managed both the UI and the related nautilus files. This lead to it
being inflexible due to operation specific logic being mixed with the rest of
the functionality. In order to change this, move file logic to a separate module
and add methods for controlling the UI elements in the dialog.

Create an operation-manager module to handle dialog controlling. Move anything
related to Nautilus files from the dialog class to the new module.

https://bugzilla.gnome.org/show_bug.cgi?id=770160
2016-08-23 00:35:33 +03:00
Enrico Nicoletto c389f97792 Updated Brazilian Portuguese translation 2016-08-22 20:27:24 +00:00
Daniel Mustieles 35832f1213 Updated Spanish translation 2016-08-22 20:45:34 +02:00
Ernestas Kulik 7f91af56d8 file-operations: zero-initialize pointer
The file_info autoptr in transfer_add_file_to_count() is not
zero-initialized and the function conditionally returns early, which
could result in a crash. This commit fixes that.

https://bugzilla.gnome.org/show_bug.cgi?id=769383
2016-08-22 21:01:00 +03:00
Claude Paroz d4995306cc Updated French translation 2016-08-22 16:55:14 +00:00
Piotr Drąg 8335cb0c0a Updated Polish translation 2016-08-22 17:58:37 +02:00
Alberts Muktupāvels 6162d19447 nautilus-desktop: initialize composited to TRUE
nautilus_desktop_window_composited_changed function will do nothing
if we use initial value from GdkScreen because of early return:
  if (window->details->composited == composited)
    return;

Change back initial value to TRUE to make sure that background will
be setup if screen is not composited.

https://bugzilla.gnome.org/show_bug.cgi?id=769360
2016-08-22 16:54:16 +03:00
Andika Triwidada f77669b144 Updated Indonesian translation 2016-08-22 11:28:11 +00:00
Ernestas Kulik d033e12a27 file-operations: rename calls to transfer_file_add_to_count
The function was renamed without renaming the calls to it.

https://bugzilla.gnome.org/show_bug.cgi?id=769383
2016-08-22 11:50:14 +03:00
Ernestas Kulik 3f97d75e06 file-operations: update progress on skip
Currently, the transfer info of an operation is only modified if it is
successful, resulting in a confusing reflection in the UI. Treating
skipped operations as completed and displaying them as such feels more
natural, as they are technically completed (i.e. nothing has been done).
This commit changes the behavior as such.

https://bugzilla.gnome.org/show_bug.cgi?id=769383
2016-08-22 11:19:06 +03:00
Flo H fe7d1c6f1d Updated German translation 2016-08-21 19:20:52 +00:00
Ernestas Kulik 374718f38e file-operations: fix duplication status string
There are a couple of problems with the status string during file
duplication:
  1. The status string is constructed by calling ngettext()
  with the index of the file plus one.
  2. nautilus_progress_info_take_status() is called with the total count
  of files plus one.

These two combined result in funky status strings (e.g. “duplicating 3
file in X”).

This commit fixes both of those problems.

https://bugzilla.gnome.org/show_bug.cgi?id=769997
2016-08-21 19:44:45 +03:00
Ernestas Kulik 672ccbc4db files-view: use GFile utilities
set_up_scripts_directory_global() currently uses the POSIX file
interface, which is inconsistent with the rest of the code. This commit
rewrites the parts of the function to use the GFile API.

https://bugzilla.gnome.org/show_bug.cgi?id=769602
2016-08-21 19:44:35 +03:00