[gimp/jsbueno/zommable_curves: 3/4] Changes hardcoded number of samples for curves



commit b222680fbba5a444803e3a1cdbcc7b370a1da0a7
Author: João S. O. Bueno <gwidion gmail com>
Date:   Tue May 27 12:32:10 2014 -0300

    Changes hardcoded number of samples for curves

 app/core/gimpcurve.c |   31 ++++++++++++++-----------------
 1 files changed, 14 insertions(+), 17 deletions(-)
---
diff --git a/app/core/gimpcurve.c b/app/core/gimpcurve.c
index cd02a74..3b7273e 100644
--- a/app/core/gimpcurve.c
+++ b/app/core/gimpcurve.c
@@ -143,18 +143,16 @@ gimp_curve_class_init (GimpCurveClass *klass)
   data_class->get_extension         = gimp_curve_get_extension;
   data_class->duplicate             = gimp_curve_duplicate;
 
-  GIMP_CONFIG_PROP_ENUM (object_class, PROP_CURVE_TYPE,
-                         "curve-type",
-                         "Curve Type",
-                         "The curve type",
-                         GIMP_TYPE_CURVE_TYPE,
-                         GIMP_CURVE_SMOOTH, 0);
-
-  GIMP_CONFIG_PROP_INT (object_class, PROP_N_POINTS,
-                        "n-points",
-                        "Number of Points",
-                        "The number of points",
-                        17, 17, 17, 0);
+ GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CURVE_TYPE,
+                                 "curve-type",
+                                 "The curve type",
+                                 GIMP_TYPE_CURVE_TYPE,
+                                 GIMP_CURVE_SMOOTH, 0);
+
+  GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_N_POINTS,
+                                "n-points",
+                                "The number of points",
+                                100, 100, 100, 0);
 
   array_spec = g_param_spec_double ("point", NULL, NULL,
                                     -1.0, 1.0, 0.0, GIMP_PARAM_READWRITE);
@@ -165,11 +163,10 @@ gimp_curve_class_init (GimpCurveClass *klass)
                                                                 GIMP_PARAM_STATIC_STRINGS |
                                                                 GIMP_CONFIG_PARAM_FLAGS));
 
-  GIMP_CONFIG_PROP_INT  (object_class, PROP_N_SAMPLES,
-                         "n-samples",
-                         "Number of Samples",
-                         "The number of samples",
-                         256, 256, 256, 0);
+ GIMP_CONFIG_INSTALL_PROP_INT  (object_class, PROP_N_SAMPLES,
+                                 "n-samples",
+                                 "The number of samples",
+                                 1024, 1024, 1024, 0);
 
   array_spec = g_param_spec_double ("sample", NULL, NULL,
                                     0.0, 1.0, 0.0, GIMP_PARAM_READWRITE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]