[gegl] Get rid of imaginary GeglGraph type



commit 6fa80fe35250aafa393a6c85807f18ed3b042f30
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Sat May 25 10:39:29 2013 -0700

    Get rid of imaginary GeglGraph type

 gegl/gegl-types-internal.h          |    1 -
 gegl/process/gegl-prepare-visitor.c |   10 +++++-----
 2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/gegl/gegl-types-internal.h b/gegl/gegl-types-internal.h
index ca018da..ce8cc46 100644
--- a/gegl/gegl-types-internal.h
+++ b/gegl/gegl-types-internal.h
@@ -27,7 +27,6 @@ typedef struct _GeglDebugRectVisitor GeglDebugRectVisitor;
 typedef struct _GeglEvalManager      GeglEvalManager;
 typedef struct _GeglEvalVisitor      GeglEvalVisitor;
 typedef struct _GeglFinishVisitor    GeglFinishVisitor;
-typedef struct _GeglGraph            GeglGraph;
 typedef struct _GeglHaveVisitor      GeglHaveVisitor;
 typedef struct _GeglNeedVisitor      GeglNeedVisitor;
 typedef struct _GeglDotVisitor       GeglDotVisitor;
diff --git a/gegl/process/gegl-prepare-visitor.c b/gegl/process/gegl-prepare-visitor.c
index e2f2aec..dd6b8e4 100644
--- a/gegl/process/gegl-prepare-visitor.c
+++ b/gegl/process/gegl-prepare-visitor.c
@@ -76,16 +76,16 @@ gegl_prepare_visitor_visit_node (GeglVisitor *self,
     const gchar *name = gegl_node_get_name (node);
     if (name && !strcmp (name, "proxynop-output"))
       {
-        GeglGraph *graph = g_object_get_data (G_OBJECT (node), "graph");
+        GeglNode *graph = GEGL_NODE (g_object_get_data (G_OBJECT (node), "graph"));
         g_assert (graph);
-        if (GEGL_NODE (graph)->operation)
+        if (graph->operation)
           {
-            g_mutex_lock (&GEGL_NODE (graph)->mutex);
+            g_mutex_lock (&graph->mutex);
             /* issuing a prepare on the graph, FIXME: we might need to do
              * a cycle of prepares as deep as the nesting of graphs,.
              * (or find a better way to do this) */
-            gegl_operation_prepare (GEGL_NODE (graph)->operation);
-            g_mutex_unlock (&GEGL_NODE (graph)->mutex);
+            gegl_operation_prepare (graph->operation);
+            g_mutex_unlock (&graph->mutex);
           }
       }
   }


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