[gegl] operation: compat_name should be set w/ gegl_operation_class_set_key(s)
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operation: compat_name should be set w/ gegl_operation_class_set_key(s)
- Date: Tue, 30 Jul 2013 17:49:21 +0000 (UTC)
commit 4106120de1115384f841249ad4663f476ed47db5
Author: Michael Henning <drawoc darkrefraction com>
Date: Tue Jul 30 13:13:04 2013 -0400
operation: compat_name should be set w/ gegl_operation_class_set_key(s)
gegl/operation/gegl-operation.c | 4 ++++
gegl/operation/gegl-operation.h | 3 ++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gegl/operation/gegl-operation.c b/gegl/operation/gegl-operation.c
index d04c2e8..2fb3c66 100644
--- a/gegl/operation/gegl-operation.c
+++ b/gegl/operation/gegl-operation.c
@@ -660,6 +660,10 @@ gegl_operation_class_set_key (GeglOperationClass *klass,
{
klass->name = key_value;
}
+ if (!strcmp (key_name, "compat-name"))
+ {
+ klass->compat_name = key_value;
+ }
}
void
diff --git a/gegl/operation/gegl-operation.h b/gegl/operation/gegl-operation.h
index b57f87e..a562ff0 100644
--- a/gegl/operation/gegl-operation.h
+++ b/gegl/operation/gegl-operation.h
@@ -74,7 +74,8 @@ struct _GeglOperationClass
this type of operation in GEGL, should be
set through gegl_operation_class_set_key(s) */
const gchar *compat_name; /* allows specifying an alias that the op is
- also known as */
+ also known as, should be set through
+ gegl_operation_class_set_key(s) */
GHashTable *keys; /* hashtable used for storing meta-data about an op */
guint no_cache :1; /* do not create a cache for this operation */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]