summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-file-operations.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Use double quotes instead of ascii quotesWilliam Jon McCann2012-08-141-40/+40
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=681808
* Improve the alert text when trashing a remove fileWilliam Jon McCann2012-08-141-2/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=657461
* always pass the parent window to the file operationsWilliam Jon McCann2012-07-161-1/+4
| | | | So that we can properly place resulting dialogs.
* Don't use the term mount in the error dialogWilliam Jon McCann2012-07-161-1/+1
| | | | Use the human term access instead.
* Add a Recent files placeWilliam Jon McCann2012-07-141-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=325824
* all: fix some issues highlighted by static analysisCosimo Cecchi2012-04-271-15/+15
| | | | Thanks to Jasper for the clang scanner tricks.
* file-operations: use gtk_application_inhibit/uninhibit()Cosimo Cecchi2012-04-261-2/+7
| | | | Instead of our custom code that does the same thing.
* all: use g_object_add/remove_weak_pointer()Cosimo Cecchi2012-04-111-5/+22
| | | | Instead of the eel helpers.
* file-operations: don't mix character and byte lengthsAbderrahim Kitouni2012-04-061-2/+2
| | | | | | | Otherwise untitled files end up with a (possibly) corrupt part of the name appended. https://bugzilla.gnome.org/show_bug.cgi?id=672761
* file-operations: fix off-by-one error in copied files countCosimo Cecchi2012-04-021-4/+4
| | | | | | | TransferInfo->num_files counts from zero, so we have to increment it by one when formatting it into a string. https://bugzilla.gnome.org/show_bug.cgi?id=673345
* file-operations: use the right prototype for empty trash callbackMichael Terry2012-03-051-1/+9
| | | | | | | | | When unmounting, we might first prompt whether the trash should be emptied or not on the target volume. If we do so, make sure the callback from the empty trash job has the right prototype, to avoid crashing later trying to interpret a gboolean as a pointer to a data structure. https://bugzilla.gnome.org/show_bug.cgi?id=670595
* undo: rework undo for the trash operation to be asynchronousCosimo Cecchi2012-01-211-18/+2
| | | | | | Also, make the mtime checks actually useful; we need to check the trash::deletion-date attribute and match it with the time we trashed the file (which we can easily know using g_get_current_time()).
* undo: fix undo move to trashCosimo Cecchi2012-01-211-13/+14
| | | | | We were querying the mtime of the trashed file after it was already trashed, and we were also overflowing the guint64 assigning -1 to it.
* file/file-operations: adapt to changes in file undo managerCosimo Cecchi2012-01-201-28/+37
| | | | And fix some typos.
* undo: turn NautilusFileUndoData into NautilusFileUndoInfoCosimo Cecchi2012-01-201-60/+57
| | | | | | | Make it a GObject with subclasses for each type of operations. This allows for easy sharing of the base class object with the view as well, for menu information, and provides an async API to the undo manager for the file operation.
* file-operations: first pass at passing on success informationCosimo Cecchi2012-01-201-8/+23
| | | | | We want to know if a file operation failed for some reason, so that we don't add it in the redo queue.
* undo: introduce undo supportAmos Brocco2012-01-201-6/+158
|
* file-operations: show current file counter and total filesMarcus Carlson2012-01-161-24/+17
| | | | | | | Change the file operation strings so that both the current file counter and the total number of files are shown in the UI. https://bugzilla.gnome.org/show_bug.cgi?id=606955
* file-operations: show needed space as a secondary messageTimothy Arceri2011-10-181-2/+4
| | | | | | | | When there's not enough space on the disk, show how much additional space is needed for the operation to complete, instead of a more obscure error message. https://bugzilla.gnome.org/show_bug.cgi?id=542960
* all: don't use deprecated GMutex/GThread APICosimo Cecchi2011-10-181-8/+7
| | | | | | Also, threads area always enabled, so we can remove the G_THREADS_ENABLED conditionals. Require GLib 2.31 for this.
* file-operations: ignore ALREADY_MOUNTED errors when mountingMatthias Clasen2011-09-091-1/+2
| | | | | | Don't spawn an error dialog in this case. https://bugzilla.gnome.org/show_bug.cgi?id=579645
* all: switch to g_format_size()Ryan Lortie2011-07-211-1/+1
| | | | | | | g_format_size_for_display() has been deprecated in GLib and replaced with g_format_size(). Follow that change. https://bugzilla.gnome.org/show_bug.cgi?id=654995
* file-operations: update the test to the new duplicate string behaviorCosimo Cecchi2011-03-211-2/+2
| | | | | The test was in some cases checking for what we don't actually want to happen. Change it to match current behavior.
* file-operations: make sure to handle correctly hidden files extensionsCosimo Cecchi2011-03-211-1/+1
| | | | This is a fixup of c250b5702329e71c61f6e7f4e26227925c5b1e90
* Properly strip extensions when placing the duplication stringCosimo Cecchi2011-03-211-2/+3
| | | | | | | | We use a similar matching filter to the one we use when renaming. It's not ideal (mimetypes are hardcoded, and probably some are missing), but at least we're consistent. https://bugzilla.gnome.org/show_bug.cgi?id=351290
* file-operations: make sure not to show the dialog before calling _run()Cosimo Cecchi2011-02-191-2/+0
| | | | | | This had no noticeable effect before, but with gnome-shell's modal dialog animation, it causes the dialog flickering before being picked by the WM.
* all: silence new warnings from GCC 4.6Cosimo Cecchi2011-01-251-8/+1
| | | | | | GCC 4.6 introduced a new warning about variables declared and initialized, but not really used in the function body. Remove all of these occurrences to build cleanly.
* file-operations: make Create Document/Folder use the right templateCosimo Cecchi2011-01-101-20/+32
| | | | | | | Make Create Document/Folder use "Untitled Document/Template/Folder %d" filename format. Based on a patch by Marcus Husar <marcus.husar@rose.uni-heidelberg.de>.
* file-operations: remove duplicate codeCosimo Cecchi2010-12-061-6/+0
| | | | Probably a leftover from NautilusFileConflictDialog branch.
* file-operations: add nautilus_file_operations_copy_fileCosimo Cecchi2010-12-061-8/+73
| | | | | | Copies a single file to a target directory, allowing to specify a custom target display name, and a custom source display name, which will be shown in the FileOperations dialog instead of the actual file name.
* general: use new DEBUG macros instead of nautilus_debug_logCosimo Cecchi2010-12-021-1/+0
|
* Don't autorun on nautilus_file_operations_mount_volume()Tomas Bzatek2010-11-251-8/+2
|
* general: use g_list_free_full() instead of eel functionsCosimo Cecchi2010-10-311-9/+9
|
* file-operations: use GtkMessageDialogCosimo Cecchi2010-08-211-10/+13
| | | | Instead of EelAlertDialog, which is going away.
* Don't include eel-pango-extensions.hCosimo Cecchi2010-08-191-1/+0
|
* Better (shorter) text when emptying trash (#304336)Marcus Carlson2010-08-091-4/+2
|
* Convert confirm-trash preference to gsettingsAlexander Larsson2010-07-231-21/+17
|
* Use G_PASSWORD_SAVE_FOR_SESSION by default.Tomeu Vizoso2010-07-041-0/+1
| | | | | | | When mounting volumes that require a password, present by default the option G_PASSWORD_SAVE_FOR_SESSION. https://bugzilla.gnome.org/show_bug.cgi?id=587909
* [ln-p] GSEAL nautilus-file-operations.Bastien Nocera2010-06-111-1/+1
|
* Fix indentation.Cosimo Cecchi2010-04-261-11/+11
|
* Fix a conflict after rebase.Cosimo Cecchi2010-04-261-1/+0
|
* Implement support for rename in the operations codeCosimo Cecchi2010-04-261-9/+43
| | | | Act accordingly to a rename response from the conflict dialog.
* Adapt the file operations code to use the new dialogCosimo Cecchi2010-04-261-102/+44
| | | | | | Cut out of the file operations module, the code used to display conflict dialogs. Use the new dialog instead. Rename is not working yet.
* Implement responses from the dialog back to the file operation.Cosimo Cecchi2010-04-261-15/+46
| | | | | | Add some API to get the response type from the conflict dialog back to the file operations code. Start using that API during the operations accordingly.
* Finish implement icon boxes in the dialog.Cosimo Cecchi2010-04-261-7/+52
| | | | | | Finish implement icon boxes in the conflict dialog. Add a main thread runner from inside the file operations, as the operation itself is done in an I/O worker thread.
* First implementation of NautilusFileConflictDialogCosimo Cecchi2010-04-261-1/+9
| | | | | | | Basic UI implementation of NautilusFileConflictDialog. Add it to Makefile.am. Also, hook the dialog inside the relevant file operations and load it at the right place when doing a file operation.
* Add nautilus_file_operations_unmount_mount_full with a callbackAlexander Larsson2010-03-081-6/+32
|
* Don't free uninitilized errorsAlexander Larsson2009-11-271-3/+0
| | | | test_dir_is_parent doesn't set error, so no need to free it.
* Ensure ABS calls work on difference of unsigned valuesAlexander Larsson2009-11-191-2/+2
| | | | | guint64 - guint64 is of type guint64, so ABS doesn't work on it. Cast to gint64 to make sure this works.
* Complete XDS supportJames Dietrich2009-11-171-2/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=585790