Make the created GEGL graphs have the "dont-cache" property set to avoid

* app/core/gimpdrawable-operation.c:
* app/core/gimpimagemap.c: Make the created GEGL graphs have the
"dont-cache" property set to avoid unneeded caches.

svn path=/trunk/; revision=25689
This commit is contained in:
Øyvind Kolås 2008-05-17 15:26:12 +00:00
parent 2a38f864f2
commit 425c734eea
3 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2008-05-17 Øyvind Kolås <pippin@gimp.org>
* app/core/gimpdrawable-operation.c:
* app/core/gimpimagemap.c: Make the created GEGL graphs have the
"dont-cache" property set to avoid unneeded caches.
2008-05-17 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpwidgets-constructors.[ch]: add new function

View File

@ -65,6 +65,14 @@ gimp_drawable_apply_operation (GimpDrawable *drawable,
return;
gegl = gegl_node_new ();
/* If the dont-cache property exist on the node object, we set it to
* false causing children of the node to not do any caching either,
* unless explicitly re-enabled.
*/
if (g_object_class_find_property (G_OBJECT_GET_CLASS (gegl), "dont-cache"))
g_object_set (gegl, "dont-cache", TRUE, NULL);
input = gegl_node_new_child (gegl,
"operation", "gimp-tilemanager-source",
"tile-manager", gimp_drawable_get_tiles (drawable),

View File

@ -451,6 +451,10 @@ gimp_image_map_apply (GimpImageMap *image_map,
{
image_map->gegl = gegl_node_new ();
if (g_object_class_find_property (
G_OBJECT_GET_CLASS (image_map->gegl), "dont-cache"))
g_object_set (image_map->gegl, "dont-cache", TRUE, NULL);
image_map->input =
gegl_node_new_child (image_map->gegl,
"operation", "gimp-tilemanager-source",