[gimp] app: GimpOperationTool: change values for color roles property keys
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: GimpOperationTool: change values for color roles property keys
- Date: Fri, 16 May 2014 15:15:35 +0000 (UTC)
commit 2df26f7fd85737274f3250c091744ec7f144847e
Author: Øyvind Kolås <pippin gimp org>
Date: Fri May 16 16:42:59 2014 +0200
app: GimpOperationTool: change values for color roles property keys
Foreground and background are GIMP concepts; the annotations on GEGL ops
should be about how the operation makes use of the meta-data; not where
it comes from in one particular application using GEGL.
old names:
"role", "foreground-color",
"role", "background-color",
new names:
"role", "color-primary",
"role", "color-secondary",
app/tools/gimpoperationtool.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpoperationtool.c b/app/tools/gimpoperationtool.c
index 97cdd5e..15f2005 100644
--- a/app/tools/gimpoperationtool.c
+++ b/app/tools/gimpoperationtool.c
@@ -519,14 +519,14 @@ gimp_operation_tool_sync_op (GimpOperationTool *op_tool,
g_object_set (op_tool->config, pspec->name, bounds_height, NULL);
}
}
- else if (HAS_KEY (pspec, "role", "foreground"))
+ else if (HAS_KEY (pspec, "role", "color-primary"))
{
GimpRGB color;
gimp_context_get_foreground (GIMP_CONTEXT (options), &color);
g_object_set (op_tool->config, pspec->name, &color, NULL);
}
- else if (HAS_KEY (pspec, "role", "background"))
+ else if (HAS_KEY (pspec, "role", "color-secondary"))
{
GimpRGB color;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]