[gimp] app: Rename so-called airbrush pressure to Flow
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Rename so-called airbrush pressure to Flow
- Date: Sun, 14 Mar 2010 15:30:26 +0000 (UTC)
commit 861179b452ebf0a6788a793e0ff1b464eed33a5e
Author: Alexia Death <alexiadeath gmail com>
Date: Sun Mar 14 17:23:49 2010 +0200
app: Rename so-called airbrush pressure to Flow
Top reasons for this are, that pressure is already
used as input for dynamcs and the fact that flow of
paint makes much more sense.
app/paint/gimpairbrush.c | 2 +-
app/paint/gimpairbrushoptions.c | 20 ++++++++++----------
app/paint/gimpairbrushoptions.h | 2 +-
app/tools/gimpairbrushtool.c | 4 ++--
4 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/app/paint/gimpairbrush.c b/app/paint/gimpairbrush.c
index 1b1fc94..ef4ceb0 100644
--- a/app/paint/gimpairbrush.c
+++ b/app/paint/gimpairbrush.c
@@ -196,7 +196,7 @@ gimp_airbrush_motion (GimpPaintCore *paint_core,
fade_point = gimp_paint_options_get_fade (paint_options, image,
paint_core->pixel_dist);
- opacity = options->pressure / 100.0;
+ opacity = options->flow / 100.0;
opacity *= gimp_dynamics_output_get_linear_value(GIMP_BRUSH_CORE(paint_core)->dynamics->opacity_output,
coords,
paint_options,
diff --git a/app/paint/gimpairbrushoptions.c b/app/paint/gimpairbrushoptions.c
index 5bb18d4..07de196 100644
--- a/app/paint/gimpairbrushoptions.c
+++ b/app/paint/gimpairbrushoptions.c
@@ -26,15 +26,15 @@
#include "gimpairbrushoptions.h"
-#define AIRBRUSH_DEFAULT_RATE 80.0
-#define AIRBRUSH_DEFAULT_PRESSURE 10.0
+#define AIRBRUSH_DEFAULT_RATE 80.0
+#define AIRBRUSH_DEFAULT_FLOW 10.0
enum
{
PROP_0,
PROP_RATE,
- PROP_PRESSURE
+ PROP_FLOW
};
@@ -65,9 +65,9 @@ gimp_airbrush_options_class_init (GimpAirbrushOptionsClass *klass)
0.0, 150.0, AIRBRUSH_DEFAULT_RATE,
GIMP_PARAM_STATIC_STRINGS);
- GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_PRESSURE,
- "pressure", NULL,
- 0.0, 100.0, AIRBRUSH_DEFAULT_PRESSURE,
+ GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FLOW,
+ "flow", NULL,
+ 0.0, 100.0, AIRBRUSH_DEFAULT_FLOW,
GIMP_PARAM_STATIC_STRINGS);
}
@@ -89,8 +89,8 @@ gimp_airbrush_options_set_property (GObject *object,
case PROP_RATE:
options->rate = g_value_get_double (value);
break;
- case PROP_PRESSURE:
- options->pressure = g_value_get_double (value);
+ case PROP_FLOW:
+ options->flow = g_value_get_double (value);
break;
default:
@@ -112,8 +112,8 @@ gimp_airbrush_options_get_property (GObject *object,
case PROP_RATE:
g_value_set_double (value, options->rate);
break;
- case PROP_PRESSURE:
- g_value_set_double (value, options->pressure);
+ case PROP_FLOW:
+ g_value_set_double (value, options->flow);
break;
default:
diff --git a/app/paint/gimpairbrushoptions.h b/app/paint/gimpairbrushoptions.h
index 3ca1a51..4455692 100644
--- a/app/paint/gimpairbrushoptions.h
+++ b/app/paint/gimpairbrushoptions.h
@@ -37,7 +37,7 @@ struct _GimpAirbrushOptions
GimpPaintOptions parent_instance;
gdouble rate;
- gdouble pressure;
+ gdouble flow;
};
struct _GimpAirbrushOptionsClass
diff --git a/app/tools/gimpairbrushtool.c b/app/tools/gimpairbrushtool.c
index 98d6e4d..c6aa15a 100644
--- a/app/tools/gimpairbrushtool.c
+++ b/app/tools/gimpairbrushtool.c
@@ -92,9 +92,9 @@ gimp_airbrush_options_gui (GimpToolOptions *tool_options)
1.0, 1.0, 1,
FALSE, 0.0, 0.0);
- gimp_prop_scale_entry_new (config, "pressure",
+ gimp_prop_scale_entry_new (config, "flow",
GTK_TABLE (table), 0, 1,
- _("Pressure:"),
+ _("Flow:"),
1.0, 1.0, 1,
FALSE, 0.0, 0.0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]