[gimp/soc-2009-siox-drb] threshold alter
- From: Jie Ding <jieding src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp/soc-2009-siox-drb] threshold alter
- Date: Wed, 1 Jul 2009 09:12:05 +0000 (UTC)
commit 0cba8f18e8100aceeebcfbd7427f7fbf278dbc27
Author: Jie Ding <jieding src gnome org>
Date: Wed Jul 1 15:55:09 2009 +0800
threshold alter
app/tools/gimpforegroundselectoptions.c | 8 ++++----
app/tools/gimpforegroundselectoptions.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app/tools/gimpforegroundselectoptions.c b/app/tools/gimpforegroundselectoptions.c
index 390ac94..f7cf106 100644
--- a/app/tools/gimpforegroundselectoptions.c
+++ b/app/tools/gimpforegroundselectoptions.c
@@ -111,9 +111,9 @@ gimp_foreground_select_options_class_init (GimpForegroundSelectOptionsClass *kla
0, 8, SIOX_DEFAULT_SMOOTHNESS,
GIMP_PARAM_STATIC_STRINGS);
- GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_THRESHOLD,//(new)
+ GIMP_CONFIG_INSTALL_PROP_FLOAT (object_class, PROP_THRESHOLD,//(new)
"threshold",//(new)
- _("Range for SIOX_DRB_ADD:1.0"//(new)
+ _("Range for SIOX_DRB_ADD:1.0"//(new)
"Range for SIOX_DRB_ADD:0.0"),//(new)
0.0, 1.0, SIOX_DEFAULT_THRESHOLD,//(new)
GIMP_PARAM_STATIC_STRINGS); //(new)
@@ -188,7 +188,7 @@ gimp_foreground_select_options_set_property (GObject *object,
break;
case PROP_THRESHOLD://(new)
- options->threshold = g_value_get_int (value);//(new)
+ options->threshold = g_value_get_float (value);//(new)
break;//(new)
case PROP_MASK_COLOR:
@@ -252,7 +252,7 @@ gimp_foreground_select_options_get_property (GObject *object,
break;
case PROP_THRESHOLD://(new)//(should be float )
- g_value_set_int (value, options->threshold);//(new)
+ g_value_set_float(value, options->threshold);//(new)
break;//(new)
case PROP_MASK_COLOR:
diff --git a/app/tools/gimpforegroundselectoptions.h b/app/tools/gimpforegroundselectoptions.h
index b6e381e..fe8ae7e 100644
--- a/app/tools/gimpforegroundselectoptions.h
+++ b/app/tools/gimpforegroundselectoptions.h
@@ -42,7 +42,7 @@ struct _GimpForegroundSelectOptions
gboolean refinement;//(new)
gint stroke_width;
gint smoothness;
- gint threshold;//(new)
+ gfloat threshold;//(new)
GimpChannelType mask_color;
gboolean expanded;
gdouble sensitivity[3];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]