[monkey-bubble: 330/753] Use gnome_vfs_async_cancel() instead of gnome_vfs_async_close() on error.
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 330/753] Use gnome_vfs_async_cancel() instead of gnome_vfs_async_close() on error.
- Date: Wed, 14 Jul 2010 22:23:24 +0000 (UTC)
commit ed1746072d62b02b87c6c0497ac243fe3189eb10
Author: Martin Baulig <baulig suse de>
Date: Fri May 25 17:20:01 2001 +0000
Use gnome_vfs_async_cancel() instead of gnome_vfs_async_close() on error.
2001-05-25 Martin Baulig <baulig suse de>
* gnome-vfs-util.c (load_done): Use gnome_vfs_async_cancel() instead of
gnome_vfs_async_close() on error.
libgnomeui/ChangeLog | 5 +++++
libgnomeui/gnome-vfs-util.c | 5 ++++-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/libgnomeui/ChangeLog b/libgnomeui/ChangeLog
index 1f9ee1a..d0f9fd2 100644
--- a/libgnomeui/ChangeLog
+++ b/libgnomeui/ChangeLog
@@ -1,5 +1,10 @@
2001-05-25 Martin Baulig <baulig suse de>
+ * gnome-vfs-util.c (load_done): Use gnome_vfs_async_cancel() instead of
+ gnome_vfs_async_close() on error.
+
+2001-05-25 Martin Baulig <baulig suse de>
+
* gnome-selector-client.c
(gnome_selector_client_set_uri): New function.
(gnome_selector_client_add_uri): New function.
diff --git a/libgnomeui/gnome-vfs-util.c b/libgnomeui/gnome-vfs-util.c
index a6a7887..f94437b 100644
--- a/libgnomeui/gnome-vfs-util.c
+++ b/libgnomeui/gnome-vfs-util.c
@@ -271,7 +271,10 @@ load_done (GnomeGdkPixbufAsyncHandle *handle,
GdkPixbuf *pixbuf)
{
if (handle->vfs_handle != NULL) {
- gnome_vfs_async_close (handle->vfs_handle, file_closed_callback, NULL);
+ if (result != GNOME_VFS_OK)
+ gnome_vfs_async_cancel (handle->vfs_handle);
+ else
+ gnome_vfs_async_close (handle->vfs_handle, file_closed_callback, NULL);
}
(* handle->load_callback) (handle, result, pixbuf, handle->callback_data);
free_pixbuf_load_handle (handle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]