[gthumb: 13/14] use the cancellable task directly
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb: 13/14] use the cancellable task directly
- Date: Fri, 28 Jan 2011 00:54:15 +0000 (UTC)
commit d4829a72399ebdd60130f894e342fd525b630398
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Jan 28 00:28:01 2011 +0100
use the cancellable task directly
extensions/file_manager/gth-copy-task.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/extensions/file_manager/gth-copy-task.c b/extensions/file_manager/gth-copy-task.c
index 5185918..0714ffb 100644
--- a/extensions/file_manager/gth-copy-task.c
+++ b/extensions/file_manager/gth-copy-task.c
@@ -92,6 +92,7 @@ gth_copy_task_exec (GthTask *task)
self = GTH_COPY_TASK (task);
+ gth_file_source_set_cancellable (self->priv->file_source, gth_task_get_cancellable (task));
gth_file_source_copy (self->priv->file_source,
self->priv->destination,
self->priv->files,
@@ -104,13 +105,6 @@ gth_copy_task_exec (GthTask *task)
static void
-gth_copy_task_cancelled (GthTask *task)
-{
- gth_file_source_cancel (GTH_COPY_TASK (task)->priv->file_source);
-}
-
-
-static void
gth_copy_task_class_init (GthCopyTaskClass *klass)
{
GObjectClass *object_class;
@@ -124,7 +118,6 @@ gth_copy_task_class_init (GthCopyTaskClass *klass)
task_class = GTH_TASK_CLASS (klass);
task_class->exec = gth_copy_task_exec;
- task_class->cancelled = gth_copy_task_cancelled;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]