[gthumb: 42/57] [webalbums] allow to interrupt the task
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb: 42/57] [webalbums] allow to interrupt the task
- Date: Sun, 20 Jun 2010 16:25:17 +0000 (UTC)
commit bb88ed0e2878b9360a6b4595f98f1d92d6201630
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Jun 17 17:15:59 2010 +0200
[webalbums] allow to interrupt the task
extensions/webalbums/gth-web-exporter.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/extensions/webalbums/gth-web-exporter.c b/extensions/webalbums/gth-web-exporter.c
index 6dcc7eb..7f791e6 100644
--- a/extensions/webalbums/gth-web-exporter.c
+++ b/extensions/webalbums/gth-web-exporter.c
@@ -2700,6 +2700,18 @@ gth_web_exporter_exec (GthTask *task)
static void
+gth_web_exporter_cancelled (GthTask *task)
+{
+ GthWebExporter *self;
+
+ g_return_if_fail (GTH_IS_WEB_EXPORTER (task));
+
+ self = GTH_WEB_EXPORTER (task);
+ self->priv->interrupted = TRUE;
+}
+
+
+static void
gth_web_exporter_finalize (GObject *object)
{
GthWebExporter *self;
@@ -2749,6 +2761,7 @@ gth_web_exporter_class_init (GthWebExporterClass *klass)
task_class = GTH_TASK_CLASS (klass);
task_class->exec = gth_web_exporter_exec;
+ task_class->cancelled = gth_web_exporter_cancelled;
}
@@ -2790,6 +2803,7 @@ gth_web_exporter_init (GthWebExporter *self)
self->priv->index_file = g_strdup (DEFAULT_INDEX_FILE);
self->priv->file_list = NULL;
self->priv->tmp_dir = NULL;
+ self->priv->interrupted = FALSE;
self->priv->iloader = gth_image_loader_new (FALSE);
g_signal_connect (G_OBJECT (self->priv->iloader),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]