[file-roller] added a cancellable object to some GIO functions



commit a323c11554785a9861fff4ae919e91c076babd82
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Jun 18 11:24:29 2012 +0200

    added a cancellable object to some GIO functions

 src/fr-archive.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/fr-archive.c b/src/fr-archive.c
index ef6d3cb..78704e7 100644
--- a/src/fr-archive.c
+++ b/src/fr-archive.c
@@ -1146,7 +1146,7 @@ load_local_archive (FrArchive  *archive,
 	FrCommand  *tmp_command;
 	const char *mime_type;
 
-	if (! g_file_query_exists (archive->file, NULL)) {
+	if (! g_file_query_exists (archive->file, archive->priv->cancellable)) {
 		fr_archive_action_completed (archive,
 					     FR_ACTION_LOADING_ARCHIVE,
 					     FR_PROC_ERROR_GENERIC,
@@ -1253,11 +1253,13 @@ copy_remote_file (FrArchive  *archive,
 {
 	XferData *xfer_data;
 
-	if (! g_file_query_exists (archive->file, NULL)) {
+	if (! g_file_query_exists (archive->file, archive->priv->cancellable)) {
 		GError *error;
+
 		error = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_FOUND, _("Archive not found"));
 		fr_archive_copy_done (archive, FR_ACTION_LOADING_ARCHIVE, error);
 		g_error_free (error);
+
 		return;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]