[gthumb] task: define the for-viewer property as boolean
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] task: define the for-viewer property as boolean
- Date: Thu, 22 Apr 2021 07:49:01 +0000 (UTC)
commit c1335cf6f276a270e058da7e54eabb268d006491
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Apr 22 09:47:09 2021 +0200
task: define the for-viewer property as boolean
gthumb/gth-task.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gthumb/gth-task.c b/gthumb/gth-task.c
index 374be5d4..a792ec64 100644
--- a/gthumb/gth-task.c
+++ b/gthumb/gth-task.c
@@ -118,7 +118,9 @@ gth_task_set_property (GObject *object,
break;
case PROP_FOR_VIEWER:
self->priv->for_viewer = g_value_get_boolean (value);
+ break;
default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
}
}
@@ -173,11 +175,11 @@ gth_task_class_init (GthTaskClass *class)
g_object_class_install_property (object_class,
PROP_FOR_VIEWER,
- g_param_spec_string ("for-viewer",
- "For Viewer",
- "Whether this task is needed by the current
viewer. It is cancelled if the viewer is closed.",
- NULL,
- G_PARAM_READWRITE));
+ g_param_spec_boolean ("for-viewer",
+ "For Viewer",
+ "Whether this task is needed by the current
viewer. It is cancelled if the viewer is closed.",
+ FALSE,
+ G_PARAM_READWRITE));
/* signals */
@@ -228,6 +230,7 @@ gth_task_init (GthTask *self)
self->priv->cancellable = NULL;
self->priv->cancellable_cancelled = 0;
self->priv->description = NULL;
+ self->priv->for_viewer = FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]