summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendtrash.c
Commit message (Collapse)AuthorAgeFilesLines
* Use Unicode in translatable stringsPiotr Drąg2016-10-031-1/+1
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772219
* daemon: Set G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE attributeOndrej Holy2016-06-281-0/+3
| | | | | | | Mark all network-based backends as remote. This is useful to remove some hardcoded lists of filesystem types in GTK+. Bump required GLib version accordingly.
* trash: Rescan trash dirs before operations with filesOndrej Holy2016-03-311-0/+12
| | | | | | | | | | | | Patches to use G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT were recently proposed for Nautilus and GTK+. We have to be sure that the item count is valid and therefore we have to rescan the trash dirs before. Otherwise the count is 0 if enumeration isn't called before, which is obviously wrong. Similarly, trash dirs have to be rescanned before other operations (i.e. read, delete, pull), otherwise the operations may fail with G_IO_ERROR_NOT_FOUND if enumeration wasn't called before. https://bugzilla.gnome.org/show_bug.cgi?id=711459
* trash: Implement query_info_on_read()Ross Lagerwall2014-04-301-0/+29
| | | | | | | Implement query_info_on_read() by proxying to the underlying stream's implementation. https://bugzilla.gnome.org/show_bug.cgi?id=720806
* Revert "trash: Don't use try_ for blocking methods"Ross Lagerwall2014-02-021-29/+51
| | | | | | | | | This reverts commit 052682c8a22bf8d7c86fb0f086a119dd7fec4c6b. This may have caused a race condition causing failed assertions; since it is not important, revert for now. https://bugzilla.gnome.org/show_bug.cgi?id=723305
* trash: Don't use try_ for blocking methodsRoss Lagerwall2014-01-101-51/+29
| | | | | | | Don't use the try_ variants of the GVfsBackend methods for methods that could block. https://bugzilla.gnome.org/show_bug.cgi?id=720589
* trash: Fix missing includeRoss Lagerwall2013-11-081-0/+1
| | | | Caused by 15d5da3f13f9325cab8d32316304ce49d0ff83fb.
* trash: Add " (invalid encoding)" to files with invalid encodingRoss Lagerwall2013-11-081-4/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=656186
* trash: Support enumerating non-UTF-8 filenamesRoss Lagerwall2013-11-081-15/+0
| | | | | | | | | Before when enumerating, display names were set directly from the filenames which can be a problem if the filename is not UTF-8. Instead, don't set the display name at all since it is set correctly via trash_backend_add_info(). https://bugzilla.gnome.org/show_bug.cgi?id=656186
* trash: Use the symbolic names for trash:: attributesBastien Nocera2013-03-141-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=695836
* Add symbolics support to the backendsWilliam Jon McCann2012-08-301-0/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=681458
* trash: Make it possible to get to real URIBastien Nocera2012-07-131-1/+14
| | | | | | | So that the files can be poked direction, without the indirection. This makes it possible for Totem to play DVDs from the trash for example. https://bugzilla.gnome.org/show_bug.cgi?id=667794
* Don't always overwrite on trash restoreAlexander Larsson2009-10-081-1/+1
| | | | | | We want to get overwrite dialogs when restoring from trash. https://bugzilla.gnome.org/show_bug.cgi?id=596618
* [TRASH] pass cancellables to GFile operationsBenjamin Otte2009-06-101-10/+17
| | | | | | No operations in the trash backend passed the job's cancellable on. This patch fixes this. It also passes on the progress callback in trash_backend_pull
* Convert all spew to g_debug()Alexander Larsson2009-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-03-06 Alexander Larsson <alexl@redhat.com> * daemon/daemon-main.c: * daemon/gvfsbackend.c: * daemon/gvfsbackendburn.c: * daemon/gvfsbackenddav.c: * daemon/gvfsbackendhttp.c: * daemon/gvfsbackendobexftp.c: * daemon/gvfsbackendtrash.c: * daemon/gvfsdaemon.c: * daemon/gvfsjobcloseread.c: * daemon/gvfsjobclosewrite.c: * daemon/gvfsjobcopy.c: * daemon/gvfsjobdbus.c: * daemon/gvfsjobenumerate.c: * daemon/gvfsjobmount.c: * daemon/gvfsjobmove.c: * daemon/gvfsjobpull.c: * daemon/gvfsjobpush.c: * daemon/gvfsjobread.c: * daemon/gvfsjobseekread.c: * daemon/gvfsjobseekwrite.c: * daemon/gvfsjobunmount.c: * daemon/gvfsjobwrite.c: * daemon/mount.c: Convert all spew to g_debug() svn path=/trunk/; revision=2297
* Bug 570533 – use g_set_error_literalCosimo Cecchi2009-02-131-12/+12
| | | | | | | | | | | | | | | | 2009-02-13 Cosimo Cecchi <cosimoc@gnome.org> Bug 570533 – use g_set_error_literal * daemon/gvfsbackendobexftp.c: (_push_single_file_helper): * daemon/gvfsbackendtrash.c: (trash_backend_get_file), (trash_backend_open_for_read), (trash_backend_delete), (trash_backend_pull): * daemon/trashlib/trashitem.c: (trash_item_delete): use g_set_error_literal() when appropriate. Patch by Christian Persch. svn path=/trunk/; revision=2214
* Bug 570481 – Please add translator commentsRyan Lortie2009-02-041-2/+2
| | | | | | | | | | | | 2009-02-04 Ryan Lortie <desrt@desrt.ca> Bug 570481 – Please add translator comments * daemon/gvfsbackendtrash.c: use clearer language to make it easier to translate (not to mention, easier to understand in English). svn path=/trunk/; revision=2199
* nail a couple of leaksRyan Lortie2009-01-201-0/+2
| | | | | | | | | 2009-01-20 Ryan Lortie <desrt@desrt.ca> * daemon/gvfsbackendtrash.c: nail a couple of leaks svn path=/trunk/; revision=2175
* don't insta-thaw deletes use a timeout to only call thaw() once per batchRyan Lortie2009-01-121-0/+25
| | | | | | | | | | | 2009-01-12 Ryan Lortie <desrt@desrt.ca> * daemon/trashlib/trashitem.c: don't insta-thaw deletes * daemon/gvfsbackendtrash.c: use a timeout to only call thaw() once per batch of delete method calls. svn path=/trunk/; revision=2167
* add trash::orig-path and trash::deletion-date infoRyan Lortie2008-12-161-6/+21
| | | | | | | | | | 2008-12-16 Ryan Lortie <desrt@desrt.ca> * daemon/gvfsbackendtrash.c (trash_backend_add_info): add trash::orig-path and trash::deletion-date info svn path=/trunk/; revision=2142
* relicense to LGPLv2+GVFS_1_1_2Ryan Lortie2008-12-151-2/+5
| | | | | | | | | | 2008-12-15 Ryan Lortie <desrt@desrt.ca> * daemon/gvfsbackendtrash.c: * daemon/gvfsbackendtrash.h: relicense to LGPLv2+ svn path=/trunk/; revision=2138
* Fix dist issuesAlexander Larsson2008-12-151-2/+2
| | | | | | | | | | | 2008-12-15 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendtrash.c: * daemon/trashlib/Makefile.am: Fix dist issues svn path=/trunk/; revision=2137
* Fix memory leaks on trash backendRyan Lortie2008-12-121-68/+108
| | | | | | | | | | | | | | | | 2008-12-12 Ryan Lortie <desrt@desrt.ca> Fix memory leaks on trash backend * daemon/trashlib/trashdir.c: * daemon/trashlib/trashexpunge.c: * daemon/trashlib/trashitem.c: * daemon/trashlib/trashwatcher.c: fix memory leaks * daemon/gvfsbackendtrash.c: fix leaks; split enumerate into two functions (one for the root, one for the non-root case) svn path=/trunk/; revision=2135
* Implement pull support on trash backend.Ryan Lortie2008-12-121-0/+65
| | | | | | | | | | | | 2008-12-11 Ryan Lortie <desrt@desrt.ca> Implement pull support on trash backend. * daemon/trashlib/trashitem.[ch]: add support for restoring items * daemon/gvfsbackendtrash.c: implement pull svn path=/trunk/; revision=2133
* New trash:/ backend.Ryan Lortie2008-12-121-1636/+496
| | | | | | | | | | | | | | | | 2008-12-11 Ryan Lortie <desrt@desrt.ca> New trash:/ backend. * daemon/trashlib: implementation of the reader side of the fd.o trash specification * daemon/gvfsbackendtrash.[ch]: rewrite based on trashlib * configure.ac: add daemon/trashlib/Makefile to output * daemon/Makefile.am: add trashlib/ subdir and include in trash backend libraries svn path=/trunk/; revision=2132
* Add Push and Pull. Remove Upload. (#550100)Christian Kellner2008-09-011-0/+81
| | | | svn path=/trunk/; revision=1922
* Plug some leaks on error pathsMatthias Clasen2008-08-251-1/+1
| | | | svn path=/trunk/; revision=1907
* Correctly set copy name to original file name. Fixes #41852.Christian Neumair2008-08-161-1/+4
| | | | | | | | | 2008-08-16 Christian Neumair <cneumair@gnome.org> * daemon/gvfsbackendtrash.c (add_extra_trash_info): Correctly set copy name to original file name. Fixes #41852. svn path=/trunk/; revision=1887
* Bug 525779: Dont look for trashs dir on sys mountsChristian Kellner2008-08-021-2/+5
| | | | | | | Don't include internal mountswhile building up the list of trash directories. Bug #525779 svn path=/trunk/; revision=1852
* Bug 509740 – Trash icon not updated ...Christian Kellner2008-08-021-1/+21
| | | | | | | Create the home trash directory if it doesn't already exist so we can monitor it for changes and update the trash icon svn path=/trunk/; revision=1849
* Use hex escapes in the trash backend. Patch by Andreas Henriksson. FixesA. Walton2008-06-111-17/+32
| | | | | | | | | | | | | 2008-06-11 A. Walton <awalton@gnome.org> * daemon/gvfsbackendtrash.c (escape_pathname), (unescape_pathname): Use hex escapes in the trash backend. Patch by Andreas Henriksson. Fixes bug #523139. svn path=/trunk/; revision=1805
* get rid of modelines The modelines were inconsistent and caused issuesBenjamin Otte2008-04-221-1/+0
| | | | | | | | | * */*.[ch]: get rid of modelines The modelines were inconsistent and caused issues when used in different editors. svn path=/trunk/; revision=1756
* plug some minor memory leaks.Paolo Borelli2008-03-281-3/+11
| | | | | | | | 2008-03-28 Paolo Borelli <pborelli@katamail.com> * daemon/gvfsbackendtrash.c: plug some minor memory leaks. svn path=/trunk/; revision=1687
* Make sure the display name is correct even for subdirectories inside thePaolo Borelli2008-03-251-16/+7
| | | | | | | | | | | 2008-03-25 Paolo Borelli <pborelli@katamail.com> * daemon/gvfsbackendtrash.c (add_extra_trash_info): Make sure the display name is correct even for subdirectories inside the trash. (#523127) svn path=/trunk/; revision=1678
* Create the root monitor for trash when mounting. (#509740).Cosimo Cecchi2008-03-031-4/+6
| | | | | | | | | 2008-03-03 Cosimo Cecchi <cosimoc@gnome.org> * daemon/gvfsbackendtrash.c: (do_mount): Create the root monitor for trash when mounting. (#509740). svn path=/trunk/; revision=1504
* Some more cleanup.Alexander Larsson2008-02-191-3/+4
| | | | | | | | | | | | | 2008-02-19 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendtrash.c: * gconf/gapplookupgconf.c: * test/benchmark-common.c: Some more cleanup. svn path=/trunk/; revision=1303
* Code cleanup from Kjartan: Removes unused code/variables. Uses rightAlexander Larsson2008-02-191-8/+5
| | | | | | | | | | | | | | | 2008-02-19 Alexander Larsson <alexl@redhat.com> * lots of *.c files: Code cleanup from Kjartan: Removes unused code/variables. Uses right printf types Uses non-deprecated dbus calls. Removes spurious ; and , deleted extra checks for NULL for g_free svn path=/trunk/; revision=1302
* Keep track of the number of top level items in the trash. Expose thisRyan Lortie2008-02-131-26/+39
| | | | | | | | | | | 2008-02-13 Ryan Lortie <desrt@desrt.ca> * daemon/gvfsbackendtrash.c: Keep track of the number of top level items in the trash. Expose this value via the trash::item-count attribute. svn path=/trunk/; revision=1268
* Set the correct copy name. Set description.Alexander Larsson2008-02-111-1/+11
| | | | | | | | | | | 2008-02-11 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendtrash.c: Set the correct copy name. Set description. svn path=/trunk/; revision=1257
* Rename burn:// with old "CD/DVD Creator" name.Luca Ferretti2008-02-101-2/+3
| | | | | | | | | | | | | | | 2008-02-10 Luca Ferretti <elle.uca@libero.it> * daemon/gvfsbackendburn.c: (g_vfs_backend_burn_init), (file_info_from_node): Rename burn:// with old "CD/DVD Creator" name. * daemon/gvfsbackendtrash.c: (g_vfs_backend_trash_init), (do_query_info): Rename trash:// with old "Trash" name. svn path=/trunk/; revision=1249
* Always set CAN_TRASH to falseAlexander Larsson2008-02-081-0/+6
| | | | | | | | | | 2008-02-08 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendtrash.c: Always set CAN_TRASH to false svn path=/trunk/; revision=1237
* Handle unescaping __ correctly (#514040)Alexander Larsson2008-02-081-1/+1
| | | | | | | | | | 2008-02-08 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendtrash.c (unescape_pathname): Handle unescaping __ correctly (#514040) svn path=/trunk/; revision=1236
* Correctly set the name for toplevel items.Alexander Larsson2008-02-051-0/+6
| | | | | | | | | | | | 2008-02-05 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendtrash.c: (do_query_info): Correctly set the name for toplevel items. svn path=/trunk/; revision=1229
* Use -, not _ in attribute namesAlexander Larsson2008-01-231-2/+2
| | | | | | | | | | | | 2008-01-23 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendtrash.c: (add_extra_trash_info): Use -, not _ in attribute names svn path=/trunk/; revision=1170
* Use :: to delimit namespace for trash attributesAlexander Larsson2008-01-231-2/+2
| | | | | | | | | | | | 2008-01-23 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendtrash.c: (add_extra_trash_info): Use :: to delimit namespace for trash attributes svn path=/trunk/; revision=1169
* Fix warningsAlexander Larsson2008-01-211-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-21 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * client/sftpuri.c: * common/gmounttracker.c: * daemon/gvfsmonitor.c: * daemon/gvfsbackend.c: Fix warnings * daemon/gvfsbackendburn.c: * daemon/gvfsbackendlocaltest.c: * daemon/gvfsbackendtrash.c: Update to latest gio API (removal of duplicate GSeekable calls). 2008-01-21 Alexander Larsson <alexl@redhat.com> * configure.ac: Post release version bump svn path=/trunk/; revision=1161
* Clean up strings and add translator commentsAlexander Larsson2008-01-151-1/+2
| | | | | | | | | | | | | | | | | | | | | 2008-01-15 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * daemon/daemon-main.c: * daemon/gvfsbackendcdda.c: * daemon/gvfsbackendcomputer.c: * daemon/gvfsbackendftp.c: * daemon/gvfsbackendlocaltest.c: * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/gvfsbackendtrash.c: * daemon/gvfsjobsetattribute.c: * hal/ghaldrive.c: Clean up strings and add translator comments svn path=/trunk/; revision=1135
* Update to new gio APIAlexander Larsson2008-01-141-3/+5
| | | | | | | | | | | | | | 2008-01-14 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * daemon/gvfsbackendlocaltest.c: * daemon/gvfsbackendtrash.c: * programs/gvfs-monitor-dir.c: * programs/gvfs-monitor-file.c: Update to new gio API svn path=/trunk/; revision=1125
* Make GVfsMonitor API simpler for users.Alexander Larsson2008-01-101-29/+16
| | | | | | | | | | | | | 2008-01-10 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackend.h: * daemon/gvfsmonitor.[ch]: * daemon/gvfsbackendcomputer.c: * daemon/gvfsbackendtrash.c: Make GVfsMonitor API simpler for users. svn path=/trunk/; revision=1091
* Remove freeing of initial ref after delay.Alexander Larsson2008-01-101-11/+13
| | | | | | | | | | | | | | | | | | | | 2008-01-10 Alexander Larsson <alexl@redhat.com> * daemon/gvfsmonitor.c: Remove freeing of initial ref after delay. * daemon/gvfsjobcreatemonitor.[ch]: Set the monitor as result here, not only the obj path. Nicer and allows better lifetime handling. If returning a obj ref, keep the monitor alive for some time to allow a subscribe request. * daemon/gvfsbackendcomputer.c: * daemon/gvfsbackendtrash.c: Update to the new APIs svn path=/trunk/; revision=1090