[gegl] gegl: Rename GeglCRVisitor to GeglNeedVisitor
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl] gegl: Rename GeglCRVisitor to GeglNeedVisitor
- Date: Mon, 8 Jun 2009 13:38:13 -0400 (EDT)
commit 2975ba4a09ca23920338507241c55c3d0535268c
Author: Martin Nordholts <martinn src gnome org>
Date: Mon Jun 8 19:31:50 2009 +0200
gegl: Rename GeglCRVisitor to GeglNeedVisitor
Rename GeglCRVisitor to GeglNeedVisitor since that is a better name
given what it does.
---
gegl/process/gegl-eval-mgr.c | 8 ++++----
gegl/process/gegl-eval-mgr.h | 2 +-
gegl/process/gegl-need-visitor.c | 20 ++++++++++----------
gegl/process/gegl-need-visitor.h | 26 +++++++++++++-------------
4 files changed, 28 insertions(+), 28 deletions(-)
diff --git a/gegl/process/gegl-eval-mgr.c b/gegl/process/gegl-eval-mgr.c
index 80c9c6b..a575db0 100644
--- a/gegl/process/gegl-eval-mgr.c
+++ b/gegl/process/gegl-eval-mgr.c
@@ -62,7 +62,7 @@ gegl_eval_mgr_init (GeglEvalMgr *self)
self->prepare_visitor = g_object_new (GEGL_TYPE_PREPARE_VISITOR, "id", context_id, NULL);
self->have_visitor = g_object_new (GEGL_TYPE_HAVE_VISITOR, "id", context_id, NULL);
self->eval_visitor = g_object_new (GEGL_TYPE_EVAL_VISITOR, "id", context_id, NULL);
- self->cr_visitor = g_object_new (GEGL_TYPE_CR_VISITOR, "id", context_id, NULL);
+ self->need_visitor = g_object_new (GEGL_TYPE_NEED_VISITOR, "id", context_id, NULL);
self->finish_visitor = g_object_new (GEGL_TYPE_FINISH_VISITOR, "id", context_id, NULL);
self->state = UNINITIALIZED;
}
@@ -89,7 +89,7 @@ gegl_eval_mgr_finalize (GObject *self_object)
g_object_unref (self->prepare_visitor);
g_object_unref (self->eval_visitor);
- g_object_unref (self->cr_visitor);
+ g_object_unref (self->need_visitor);
g_object_unref (self->finish_visitor);
G_OBJECT_CLASS (gegl_eval_mgr_parent_class)->finalize (self_object);
@@ -178,8 +178,8 @@ gegl_eval_mgr_apply (GeglEvalMgr *self)
gegl_node_set_need_rect (root, context_id, &self->roi);
/* set up the context's rectangle (breadth first traversal) */
- gegl_visitor_reset (self->cr_visitor);
- gegl_visitor_bfs_traverse (self->cr_visitor, GEGL_VISITABLE (root));
+ gegl_visitor_reset (self->need_visitor);
+ gegl_visitor_bfs_traverse (self->need_visitor, GEGL_VISITABLE (root));
#if 0
if (g_getenv ("GEGL_DEBUG_RECTS") != NULL)
diff --git a/gegl/process/gegl-eval-mgr.h b/gegl/process/gegl-eval-mgr.h
index 347d5d1..13cb9b4 100644
--- a/gegl/process/gegl-eval-mgr.h
+++ b/gegl/process/gegl-eval-mgr.h
@@ -65,7 +65,7 @@ struct _GeglEvalMgr
/* we keep these objects around, they are too expensive to throw away */
GeglVisitor *prepare_visitor;
- GeglVisitor *cr_visitor;
+ GeglVisitor *need_visitor;
GeglVisitor *eval_visitor;
GeglVisitor *have_visitor;
GeglVisitor *finish_visitor;
diff --git a/gegl/process/gegl-need-visitor.c b/gegl/process/gegl-need-visitor.c
index d64beab..ba695d0 100644
--- a/gegl/process/gegl-need-visitor.c
+++ b/gegl/process/gegl-need-visitor.c
@@ -33,35 +33,35 @@
#include "gegl-utils.h"
-static void gegl_cr_visitor_class_init (GeglCRVisitorClass *klass);
-static void gegl_cr_visitor_visit_node (GeglVisitor *self,
- GeglNode *node);
+static void gegl_need_visitor_class_init (GeglNeedVisitorClass *klass);
+static void gegl_need_visitor_visit_node (GeglVisitor *self,
+ GeglNode *node);
-G_DEFINE_TYPE (GeglCRVisitor, gegl_cr_visitor, GEGL_TYPE_VISITOR)
+G_DEFINE_TYPE (GeglNeedVisitor, gegl_need_visitor, GEGL_TYPE_VISITOR)
static void
-gegl_cr_visitor_class_init (GeglCRVisitorClass *klass)
+gegl_need_visitor_class_init (GeglNeedVisitorClass *klass)
{
GeglVisitorClass *visitor_class = GEGL_VISITOR_CLASS (klass);
- visitor_class->visit_node = gegl_cr_visitor_visit_node;
+ visitor_class->visit_node = gegl_need_visitor_visit_node;
}
static void
-gegl_cr_visitor_init (GeglCRVisitor *self)
+gegl_need_visitor_init (GeglNeedVisitor *self)
{
}
/* sets the context's result_rect and refs */
static void
-gegl_cr_visitor_visit_node (GeglVisitor *self,
- GeglNode *node)
+gegl_need_visitor_visit_node (GeglVisitor *self,
+ GeglNode *node)
{
GeglOperationContext *context = gegl_node_get_context (node, self->context_id);
- GEGL_VISITOR_CLASS (gegl_cr_visitor_parent_class)->visit_node (self, node);
+ GEGL_VISITOR_CLASS (gegl_need_visitor_parent_class)->visit_node (self, node);
gegl_operation_calc_need_rects (node->operation, self->context_id);
if (!context->cached)
diff --git a/gegl/process/gegl-need-visitor.h b/gegl/process/gegl-need-visitor.h
index 93eaab3..e9144a9 100644
--- a/gegl/process/gegl-need-visitor.h
+++ b/gegl/process/gegl-need-visitor.h
@@ -16,38 +16,38 @@
* Copyright 2006 �yvind Kolås
*/
-#ifndef __GEGL_CR_VISITOR_H__
-#define __GEGL_CR_VISITOR_H__
+#ifndef __GEGL_NEED_VISITOR_H__
+#define __GEGL_NEED_VISITOR_H__
#include "graph/gegl-visitor.h"
G_BEGIN_DECLS
-#define GEGL_TYPE_CR_VISITOR (gegl_cr_visitor_get_type ())
-#define GEGL_CR_VISITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_CR_VISITOR, GeglCRVisitor))
-#define GEGL_CR_VISITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_CR_VISITOR, GeglCRVisitorClass))
-#define GEGL_IS_CR_VISITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_CR_VISITOR))
-#define GEGL_IS_CR_VISITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEGL_TYPE_CR_VISITOR))
-#define GEGL_CR_VISITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_CR_VISITOR, GeglCRVisitorClass))
+#define GEGL_TYPE_NEED_VISITOR (gegl_need_visitor_get_type ())
+#define GEGL_NEED_VISITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_NEED_VISITOR, GeglNeedVisitor))
+#define GEGL_NEED_VISITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_NEED_VISITOR, GeglNeedVisitorClass))
+#define GEGL_IS_NEED_VISITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_NEED_VISITOR))
+#define GEGL_IS_NEED_VISITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEGL_TYPE_NEED_VISITOR))
+#define GEGL_NEED_VISITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_NEED_VISITOR, GeglNeedVisitorClass))
-typedef struct _GeglCRVisitorClass GeglCRVisitorClass;
+typedef struct _GeglNeedVisitorClass GeglNeedVisitorClass;
-struct _GeglCRVisitor
+struct _GeglNeedVisitor
{
GeglVisitor parent_instance;
};
-struct _GeglCRVisitorClass
+struct _GeglNeedVisitorClass
{
GeglVisitorClass parent_class;
};
-GType gegl_cr_visitor_get_type (void) G_GNUC_CONST;
+GType gegl_need_visitor_get_type (void) G_GNUC_CONST;
G_END_DECLS
-#endif /* __GEGL_CR_VISITOR_H__ */
+#endif /* __GEGL_NEED_VISITOR_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]