[gthumb] use a different file_source object to execute the copy



commit 81e7d627540053f7c44b7f73dd520dc8c6454e02
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Jan 23 09:39:20 2011 +0100

    use a different file_source object to execute the copy
    
    this allows the browser to execute other IO operations while copying

 extensions/file_manager/callbacks.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/extensions/file_manager/callbacks.c b/extensions/file_manager/callbacks.c
index 2733c58..23322ac 100644
--- a/extensions/file_manager/callbacks.c
+++ b/extensions/file_manager/callbacks.c
@@ -341,15 +341,18 @@ gth_file_list_drag_data_received (GtkWidget        *file_view,
 			}
 
 			if (! cancel) {
-				GthTask *task;
+				GthFileSource *location_source;
+				GthTask       *task;
 
-				task = gth_copy_task_new (file_source,
+				location_source = gth_main_get_file_source (gth_browser_get_location (browser));
+				task = gth_copy_task_new (location_source,
 							  gth_browser_get_location_data (browser),
 							  move,
 							  selected_files);
 				gth_browser_exec_task (browser, task, FALSE);
 
 				g_object_unref (task);
+				g_object_unref (location_source);
 			}
 		}
 	}



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