[gimp/soc-2009-dynamics] Remove overiding GimpPaintOptions of properties that don't exist any longer
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp/soc-2009-dynamics] Remove overiding GimpPaintOptions of properties that don't exist any longer
- Date: Tue, 13 Oct 2009 21:49:45 +0000 (UTC)
commit b5022d310ba5347455d92ea072e537dcc7359fea
Author: Michael Natterer <mitch gimp org>
Date: Tue Oct 13 23:48:19 2009 +0200
Remove overiding GimpPaintOptions of properties that don't exist any longer
The code was commented out already, get rid of it completely.
app/paint/gimpairbrushoptions.c | 33 +++------------------------------
1 files changed, 3 insertions(+), 30 deletions(-)
---
diff --git a/app/paint/gimpairbrushoptions.c b/app/paint/gimpairbrushoptions.c
index f986f48..5bb18d4 100644
--- a/app/paint/gimpairbrushoptions.c
+++ b/app/paint/gimpairbrushoptions.c
@@ -34,9 +34,7 @@ enum
{
PROP_0,
PROP_RATE,
- PROP_PRESSURE,
- PROP_VELOCITY_SIZE,
- PROP_VELOCITY_HARDNESS
+ PROP_PRESSURE
};
@@ -66,24 +64,11 @@ gimp_airbrush_options_class_init (GimpAirbrushOptionsClass *klass)
"rate", NULL,
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_PARAM_STATIC_STRINGS);
-
- /* override velocity-size because its unnatural as a default for airbrush */
-/* GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_VELOCITY_SIZE,
- "velocity-size", NULL,
- FALSE,
- GIMP_PARAM_STATIC_STRINGS);
-
- /* override velocity-hardness to default to a true,
- * because that is natural for airbrush
- */
- /* GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_VELOCITY_HARDNESS,
- "velocity-hardness", NULL,
- TRUE,
- GIMP_PARAM_STATIC_STRINGS);*/
}
static void
@@ -107,13 +92,7 @@ gimp_airbrush_options_set_property (GObject *object,
case PROP_PRESSURE:
options->pressure = g_value_get_double (value);
break;
-/* case PROP_VELOCITY_SIZE:
- GIMP_PAINT_OPTIONS (options)->velocity_options->size = g_value_get_boolean (value);
- break;
- case PROP_VELOCITY_HARDNESS:
- GIMP_PAINT_OPTIONS (options)->velocity_options->hardness = g_value_get_boolean (value);
- break;
-*/
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
@@ -136,12 +115,6 @@ gimp_airbrush_options_get_property (GObject *object,
case PROP_PRESSURE:
g_value_set_double (value, options->pressure);
break;
-/* case PROP_VELOCITY_SIZE:
- g_value_set_boolean (value, GIMP_PAINT_OPTIONS (options)->velocity_options->size);
- break;
- case PROP_VELOCITY_HARDNESS:
- g_value_set_boolean (value, GIMP_PAINT_OPTIONS (options)->velocity_options->hardness);
- break;*/
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]