gimp r25689 - in trunk: . app/core
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25689 - in trunk: . app/core
- Date: Sat, 17 May 2008 15:26:13 +0000 (UTC)
Author: ok
Date: Sat May 17 15:26:12 2008
New Revision: 25689
URL: http://svn.gnome.org/viewvc/gimp?rev=25689&view=rev
Log:
* app/core/gimpdrawable-operation.c:
* app/core/gimpimagemap.c: Make the created GEGL graphs have the
"dont-cache" property set to avoid unneeded caches.
Modified:
trunk/ChangeLog
trunk/app/core/gimpdrawable-operation.c
trunk/app/core/gimpimagemap.c
Modified: trunk/app/core/gimpdrawable-operation.c
==============================================================================
--- trunk/app/core/gimpdrawable-operation.c (original)
+++ trunk/app/core/gimpdrawable-operation.c Sat May 17 15:26:12 2008
@@ -65,6 +65,14 @@
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),
Modified: trunk/app/core/gimpimagemap.c
==============================================================================
--- trunk/app/core/gimpimagemap.c (original)
+++ trunk/app/core/gimpimagemap.c Sat May 17 15:26:12 2008
@@ -451,6 +451,10 @@
{
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",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]