[gimp] app: create an empty node with the gegl:nop operation



commit bb73acbb152b74563d4c906a540a423d0529987a
Author: Michael Natterer <mitch gimp org>
Date:   Sat May 24 03:04:26 2014 +0200

    app: create an empty node with the gegl:nop operation
    
    so we can safely ask for its name (workaround for GEGL warning).

 app/tools/gimpoperationtool.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpoperationtool.c b/app/tools/gimpoperationtool.c
index 040eaba..b6aba19 100644
--- a/app/tools/gimpoperationtool.c
+++ b/app/tools/gimpoperationtool.c
@@ -248,7 +248,9 @@ gimp_operation_tool_get_operation (GimpImageMapTool  *im_tool,
                                 "operation", tool->operation,
                                 NULL);
 
-  return g_object_new (GEGL_TYPE_NODE, NULL);
+  return gegl_node_new_child (NULL,
+                              "operation", "gegl:nop",
+                              NULL);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]