[gegl] Rename insta-curve and insta-filter to retro-curve and retro-filter
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Rename insta-curve and insta-filter to retro-curve and retro-filter
- Date: Wed, 2 Mar 2016 11:21:22 +0000 (UTC)
commit dd4146e10274eae735baf0006c65fde338218410
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Mar 2 11:46:56 2016 +0100
Rename insta-curve and insta-filter to retro-curve and retro-filter
This leaves the door open for adding effects that are not inspired by
Instagram, and distances us further from any possible trademark issues.
https://bugzilla.gnome.org/show_bug.cgi?id=743681
operations/workshop/Makefile.am | 4 +-
.../workshop/{insta-curve.c => retro-curve.c} | 38 ++++++++--------
.../workshop/{insta-filter.c => retro-filter.c} | 44 ++++++++++----------
3 files changed, 43 insertions(+), 43 deletions(-)
---
diff --git a/operations/workshop/Makefile.am b/operations/workshop/Makefile.am
index 10371dd..548da3a 100644
--- a/operations/workshop/Makefile.am
+++ b/operations/workshop/Makefile.am
@@ -20,12 +20,12 @@ op_LTLIBRARIES = \
ditto.la \
hstack.la \
ink-simulator.la \
- insta-curve.la \
- insta-filter.la \
kuwahara.la \
mandelbrot.la \
median-blur.la \
rawbayer-load.la \
+ retro-curve.la \
+ retro-filter.la \
rgb-clip.la \
unpremul.la \
gradient-map.la
diff --git a/operations/workshop/insta-curve.c b/operations/workshop/retro-curve.c
similarity index 96%
rename from operations/workshop/insta-curve.c
rename to operations/workshop/retro-curve.c
index c3a9dde..bc55e2d 100644
--- a/operations/workshop/insta-curve.c
+++ b/operations/workshop/retro-curve.c
@@ -21,23 +21,23 @@
#ifdef GEGL_PROPERTIES
-enum_start (gegl_insta_curve_preset)
- enum_value (GEGL_INSTA_CURVE_PRESET_NONE, "none", "None")
- enum_value (GEGL_INSTA_CURVE_PRESET_1977, "1977", "1977")
- enum_value (GEGL_INSTA_CURVE_PRESET_BRANNAN, "brannan", "Brannan")
- enum_value (GEGL_INSTA_CURVE_PRESET_GOTHAM, "gotham", "Gotham")
- enum_value (GEGL_INSTA_CURVE_PRESET_NASHVILLE, "nashville", "Nashville")
-enum_end (GeglInstaCurvePreset)
+enum_start (gegl_retro_curve_preset)
+ enum_value (GEGL_RETRO_CURVE_PRESET_NONE, "none", "None")
+ enum_value (GEGL_RETRO_CURVE_PRESET_1977, "1977", "1977")
+ enum_value (GEGL_RETRO_CURVE_PRESET_BRANNAN, "brannan", "Brannan")
+ enum_value (GEGL_RETRO_CURVE_PRESET_GOTHAM, "gotham", "Gotham")
+ enum_value (GEGL_RETRO_CURVE_PRESET_NASHVILLE, "nashville", "Nashville")
+enum_end (GeglRetroCurvePreset)
property_enum (preset, _("Preset"),
- GeglInstaCurvePreset, gegl_insta_curve_preset,
- GEGL_INSTA_CURVE_PRESET_NONE)
+ GeglRetroCurvePreset, gegl_retro_curve_preset,
+ GEGL_RETRO_CURVE_PRESET_NONE)
description (_("Which curve to apply"))
#else
#define GEGL_OP_POINT_FILTER
-#define GEGL_OP_C_FILE "insta-curve.c"
+#define GEGL_OP_C_FILE "retro-curve.c"
#include "gegl-op.h"
#include <math.h>
@@ -638,11 +638,11 @@ prepare (GeglOperation *operation)
switch (o->preset)
{
- case GEGL_INSTA_CURVE_PRESET_NONE:
+ case GEGL_RETRO_CURVE_PRESET_NONE:
format = input_format;
break;
- case GEGL_INSTA_CURVE_PRESET_1977:
+ case GEGL_RETRO_CURVE_PRESET_1977:
if (type == type_u8)
{
format = format_u8;
@@ -655,7 +655,7 @@ prepare (GeglOperation *operation)
}
break;
- case GEGL_INSTA_CURVE_PRESET_BRANNAN:
+ case GEGL_RETRO_CURVE_PRESET_BRANNAN:
if (type == type_u8)
{
format = format_u8;
@@ -668,7 +668,7 @@ prepare (GeglOperation *operation)
}
break;
- case GEGL_INSTA_CURVE_PRESET_GOTHAM:
+ case GEGL_RETRO_CURVE_PRESET_GOTHAM:
if (type == type_u8)
{
format = format_u8;
@@ -681,7 +681,7 @@ prepare (GeglOperation *operation)
}
break;
- case GEGL_INSTA_CURVE_PRESET_NASHVILLE:
+ case GEGL_RETRO_CURVE_PRESET_NASHVILLE:
if (type == type_u8)
{
format = format_u8;
@@ -729,14 +729,14 @@ operation_process (GeglOperation *operation,
operation_class = GEGL_OPERATION_CLASS (gegl_op_parent_class);
- if (o->preset == GEGL_INSTA_CURVE_PRESET_NONE)
+ if (o->preset == GEGL_RETRO_CURVE_PRESET_NONE)
{
gpointer input;
input = gegl_operation_context_get_object (context, "input");
if (input == NULL)
{
- g_warning ("insta-curve received NULL input");
+ g_warning ("retro-curve received NULL input");
return FALSE;
}
@@ -761,8 +761,8 @@ gegl_op_class_init (GeglOpClass *klass)
point_filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:insta-curve",
- "title", _("Insta curve"),
+ "name", "gegl:retro-curve",
+ "title", _("Retro curve"),
"categories", "hidden",
"description", _("Apply a preset curve to an image"),
NULL);
diff --git a/operations/workshop/insta-filter.c b/operations/workshop/retro-filter.c
similarity index 82%
rename from operations/workshop/insta-filter.c
rename to operations/workshop/retro-filter.c
index 99e7e4f..2539cb1 100644
--- a/operations/workshop/insta-filter.c
+++ b/operations/workshop/retro-filter.c
@@ -21,22 +21,22 @@
#ifdef GEGL_PROPERTIES
-enum_start (gegl_insta_filter_preset)
- enum_value (GEGL_INSTA_FILTER_PRESET_NONE, "none", "None")
- enum_value (GEGL_INSTA_FILTER_PRESET_1977, "1977", "1977")
- enum_value (GEGL_INSTA_FILTER_PRESET_BRANNAN, "brannan", "Brannan")
- enum_value (GEGL_INSTA_FILTER_PRESET_GOTHAM, "gotham", "Gotham")
- enum_value (GEGL_INSTA_FILTER_PRESET_NASHVILLE, "nashville", "Nashville")
-enum_end (GeglInstaFilterPreset)
+enum_start (gegl_retro_filter_preset)
+ enum_value (GEGL_RETRO_FILTER_PRESET_NONE, "none", "None")
+ enum_value (GEGL_RETRO_FILTER_PRESET_1977, "1977", "1977")
+ enum_value (GEGL_RETRO_FILTER_PRESET_BRANNAN, "brannan", "Brannan")
+ enum_value (GEGL_RETRO_FILTER_PRESET_GOTHAM, "gotham", "Gotham")
+ enum_value (GEGL_RETRO_FILTER_PRESET_NASHVILLE, "nashville", "Nashville")
+enum_end (GeglRetroFilterPreset)
property_enum (preset, _("Preset"),
- GeglInstaFilterPreset, gegl_insta_filter_preset,
- GEGL_INSTA_FILTER_PRESET_NONE)
+ GeglRetroFilterPreset, gegl_retro_filter_preset,
+ GEGL_RETRO_FILTER_PRESET_NONE)
description (_("Which filter to apply"))
#else
-#define GEGL_OP_C_SOURCE insta-filter.c
+#define GEGL_OP_C_SOURCE retro-filter.c
#include "gegl-plugin.h"
@@ -71,32 +71,32 @@ do_setup (GeglOperation *operation)
switch (o->preset)
{
- case GEGL_INSTA_FILTER_PRESET_NONE:
+ case GEGL_RETRO_FILTER_PRESET_NONE:
node = gegl_node_new_child (operation->node,
"operation", "gegl:nop",
NULL);
self->nodes = g_list_prepend (self->nodes, node);
break;
- case GEGL_INSTA_FILTER_PRESET_1977:
+ case GEGL_RETRO_FILTER_PRESET_1977:
node = gegl_node_new_child (operation->node,
- "operation", "gegl:insta-curve",
+ "operation", "gegl:retro-curve",
"preset", o->preset,
NULL);
self->nodes = g_list_prepend (self->nodes, node);
break;
- case GEGL_INSTA_FILTER_PRESET_BRANNAN:
+ case GEGL_RETRO_FILTER_PRESET_BRANNAN:
node = gegl_node_new_child (operation->node,
- "operation", "gegl:insta-curve",
+ "operation", "gegl:retro-curve",
"preset", o->preset,
NULL);
self->nodes = g_list_prepend (self->nodes, node);
break;
- case GEGL_INSTA_FILTER_PRESET_GOTHAM:
+ case GEGL_RETRO_FILTER_PRESET_GOTHAM:
node = gegl_node_new_child (operation->node,
- "operation", "gegl:insta-curve",
+ "operation", "gegl:retro-curve",
"preset", o->preset,
NULL);
self->nodes = g_list_prepend (self->nodes, node);
@@ -107,9 +107,9 @@ do_setup (GeglOperation *operation)
self->nodes = g_list_prepend (self->nodes, node);
break;
- case GEGL_INSTA_FILTER_PRESET_NASHVILLE:
+ case GEGL_RETRO_FILTER_PRESET_NASHVILLE:
node = gegl_node_new_child (operation->node,
- "operation", "gegl:insta-curve",
+ "operation", "gegl:retro-curve",
"preset", o->preset,
NULL);
self->nodes = g_list_prepend (self->nodes, node);
@@ -184,7 +184,7 @@ my_set_property (GObject *object,
GeglOperation *operation = GEGL_OPERATION (object);
GeglOp *self = GEGL_OP (operation);
GeglProperties *o = GEGL_PROPERTIES (operation);
- GeglInstaFilterPreset old_preset = o->preset;
+ GeglRetroFilterPreset old_preset = o->preset;
set_property (object, property_id, value, pspec);
@@ -205,8 +205,8 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->detect = detect;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:insta-filter",
- "title", _("Insta Filter"),
+ "name", "gegl:retro-filter",
+ "title", _("Retro Filter"),
"categories", "meta:color",
"description", _("Apply a preset filter to an image"),
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]