summaryrefslogtreecommitdiff
path: root/client/gvfsiconloadable.c
Commit message (Collapse)AuthorAgeFilesLines
* client: Skip session bus fallback if operation was cancelledOndrej Holy2020-12-181-1/+9
| | | | | | | | Recently added warnings when peer-to-peer connection fails (commit 60ca0cea) makes visible old bug that the session bus fallback is tried regardless of the fact that the operation was cancelled. Let's stop the operation immediately when G_IO_ERROR_CANCELLED is returned and don't print the warnings in this case.
* client: Add fallback to session bus also for synchronous APIOndrej Holy2020-12-081-4/+9
| | | | | | Asynchronous API fallbacks to session bus when peer-to-peer connection fails, however, synchronous API fails in the same case. Let's add fallback to session bus also for the synchronous case.
* client: Show warning when peer-to-peer connection failedOndrej Holy2020-12-081-1/+12
| | | | | | | When peer-to-peer connection fails, the session bus is silently used instead by the asynchronous API. Let's add warnings to make it more obvious and mention that --filesystem=xdg-run/gvfsd is probably missing.
* gvfsiconloadable: Fallback to session bus when peer-to-peer failsOndrej Holy2020-12-081-13/+45
| | | | | | g_vfs_icon_load_async fails if peer-to-peer connection can't be establised. Let's add fallback to session bus as it is implemented already on other places.
* client: Fix mount info cache invalidationOndrej Holy2019-03-041-5/+14
| | | | | | | | | | | | | Mount info cache invalidation is not handled properly and thus client can get "Cache invalid, retry (internally handled)" internal error, which should not be passed to the client. This can happen if mount was unmounted and another mount for the some location is mounted. This is now more common with introducing stable URIs for MTP backend. G_VFS_ERROR_RETRY error handling was probably lost as a consequence of GDBus port by commit 622a5c0d. Let's retry the operation internally again if G_VFS_ERROR_RETRY is returned. https://gitlab.gnome.org/GNOME/gvfs/merge_requests/30
* client: Do not modify caller's errorsOndrej Holy2017-01-241-1/+0
| | | | | | | Caller's errors are modified by g_dbus_error_strip_remote_error. Strip the dbus error in the caller directly. https://bugzilla.gnome.org/show_bug.cgi?id=747412
* Remove some leftover dead codeChristian Kellner2017-01-091-3/+1
| | | | | | | Porting from GSimpleAsyncResult to GTask resulted in a tiny amount of dead code. Remove that. https://bugzilla.gnome.org/show_bug.cgi?id=747412
* gvfsiconloadable: Duplicate caller's errorOndrej Holy2016-12-121-1/+1
| | | | | | | The caller's error is not duplicated since the commit 811aace. It might cause segfaults, because gvfsdaemonvfs is not modified appropriately. https://bugzilla.gnome.org/show_bug.cgi?id=747412
* client: Port GVfsIconLoadable to GTaskOndrej Holy2016-11-011-64/+56
| | | | | | | | | | GSimpleAsyncResult is deprecated in favour of GTask and should be replaced. This commit also slightly changes API to be more similiar with gdeamonfile. Based on patch from Dan Winship. https://bugzilla.gnome.org/show_bug.cgi?id=747412
* Use Unicode in translatable stringsPiotr Drąg2016-10-031-2/+2
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772219
* client: Remove unused code for dbus vfs filtersAlexander Larsson2013-09-261-3/+0
| | | | | | This code is not used anymore https://bugzilla.gnome.org/show_bug.cgi?id=708744
* gdbus: Remove debug printsTomas Bzatek2012-07-311-13/+0
|
* gdbus: Don't use NULL values on error with fd passingTomas Bzatek2012-07-311-7/+5
| | | | | Found out that if the remote call fails, some variables are left uninitialized and causes assertion failures while we don't need them.
* gdbus: Strip unknown GError quark stringsTomas Bzatek2012-07-311-4/+8
| | | | | | This hopefully covers all public methods. Seems like this fixes several memleaks as well.
* gdbus: Use g_clear_object() where appropriateTomas Bzatek2012-07-311-8/+4
|
* gdbus: Use G_VARIANT_TYPE_HANDLE for fd_id argumentsTomas Bzatek2012-07-311-2/+10
|
* gdbus: Make cancellation workTomas Bzatek2012-07-311-1/+12
| | | | | | This mimics the old behaviour and works for sync and async. Requires new glib for g_dbus_connection_get_last_serial().
* gdbus: Port the OpenIconForRead operationTomas Bzatek2012-07-311-247/+187
|
* Update the Address of the FSFFelix Möller2012-07-301-2/+2
| | | | | | | | | | | | | | | Updating the address of the FSF. This has been done by: while read file; do sed -i 's:59 Temple Place:51 Franklin Street:' $file sed -i 's:Suite 330:Fifth Floor:' $file sed -i 's:02111-1307:02110-1301:' $file done https://bugzilla.gnome.org/show_bug.cgi?id=656598 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* Rename gdbusutils.h to avoid conflict with GIO1.6.2Matthias Clasen2010-05-271-1/+1
| | | | This makes gvfs build with recent glib again, see bug #619537
* Bug 517014 – Factorize error messages marked for translationClaude Paroz2009-09-301-3/+3
|
* try extra hard to make sure operations get cancelled properlyBenjamin Otte2009-06-251-4/+10
| | | | | | | | | Previously there were some rather big windows that allowed for races between cancelling and calling g_simple_async_result_complete(). This code makes sure we check for cancellaton right before calling g_simple_async_result_complete(), which gets rid of that window and gives you the guarantee that cancelling an operation in the main thread will indeed return a CANCELLED error.
* Patch from David ZeuthenAlexander Larsson2008-10-211-0/+431
2008-10-21 Alexander Larsson <alexl@redhat.com> Patch from David Zeuthen * common/Makefile.am: * common/gvfsicon.[ch]: Added GVfsIcon object for GVfs backend specific icons. * common/gmountspec.[ch]: Make sure to/from string works correctly to roundtrip GMountSpec:s Make GMountSpec a boxed type * common/gvfsdaemonprotocol.h: Add OpenIconForRead operation * client/Makefile.am: * client/gvfsiconloadable.[ch]: In gvfs client side, implement GLoadableIcon for GVfsIcon type. * client/gdaemonvfs.c: Make sure that we add the GLoadableIcon interface for GVfsIcon on load * daemon/Makefile.am: * daemon/gvfsbackend.[ch]: * daemon/gvfsjobopeniconforread.[ch]: Add new job type for OpenIconForRead op * daemon/gvfsbackendgphoto2.c: Implement OpenIconForRead for icon previews. svn path=/trunk/; revision=2070