[gegl] operations: add a flush parameter to gegl:write-buffer
- From: Ville Sokk <villesokk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations: add a flush parameter to gegl:write-buffer
- Date: Mon, 13 Aug 2012 09:36:33 +0000 (UTC)
commit 6b4f3ee311861961e7ee6b6f298ddab5d47c728f
Author: Ville Sokk <ville sokk gmail com>
Date: Mon Aug 13 12:34:23 2012 +0300
operations: add a flush parameter to gegl:write-buffer
operations/common/write-buffer.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/operations/common/write-buffer.c b/operations/common/write-buffer.c
index 240e641..95790c2 100644
--- a/operations/common/write-buffer.c
+++ b/operations/common/write-buffer.c
@@ -25,6 +25,9 @@
gegl_chant_object (buffer, _("Buffer location"),
_("Write to an existing GeglBuffer"))
+gegl_chant_boolean (flush, _("Flush buffer"), TRUE,
+ _("Flush buffer after writing"))
+
#else
#define GEGL_CHANT_TYPE_SINK
@@ -86,7 +89,9 @@ process (GeglOperation *operation,
else
gegl_buffer_copy (input, result, output, result);
- gegl_buffer_flush (output);
+ if (o->flush)
+ gegl_buffer_flush (output);
+
gegl_node_emit_computed (operation->node, result);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]