[gimp/jsbueno/zommable_curves: 4/4] app: [WIP] Make ancient curves-tool zoom code compilable



commit a028410d143010688cc912c53aae93458c2f92f1
Author: Joao S. O. Bueno <gwidion gmail com>
Date:   Wed Apr 26 02:55:38 2017 -0300

    app: [WIP] Make ancient curves-tool zoom code compilable

 app/core/core-enums.c       |    2 +-
 app/core/gimpcurve.c        |   17 ++++++++++-------
 app/tools/gimpcurvestool.c  |    4 ++--
 libgimpbase/gimpbaseenums.c |    2 +-
 4 files changed, 14 insertions(+), 11 deletions(-)
---
diff --git a/app/core/core-enums.c b/app/core/core-enums.c
index edff1b5..6379d64 100644
--- a/app/core/core-enums.c
+++ b/app/core/core-enums.c
@@ -853,7 +853,7 @@ gimp_undo_type_get_type (void)
     { GIMP_UNDO_GROUP_PARASITE_ATTACH, NC_("undo-type", "Attach parasite"), NULL },
     { GIMP_UNDO_GROUP_PARASITE_REMOVE, NC_("undo-type", "Remove parasite"), NULL },
     { GIMP_UNDO_GROUP_VECTORS_IMPORT, NC_("undo-type", "Import paths"), NULL },
-    { GIMP_UNDO_GROUP_MISC, NC_("undo-type", "Plug-in"), NULL },
+    { GIMP_UNDO_GROUP_MISC, NC_("undo-type", "Plug-In"), NULL },
     { GIMP_UNDO_IMAGE_TYPE, NC_("undo-type", "Image type"), NULL },
     { GIMP_UNDO_IMAGE_PRECISION, NC_("undo-type", "Image precision"), NULL },
     { GIMP_UNDO_IMAGE_SIZE, NC_("undo-type", "Image size"), NULL },
diff --git a/app/core/gimpcurve.c b/app/core/gimpcurve.c
index 3b7273e..a919dba 100644
--- a/app/core/gimpcurve.c
+++ b/app/core/gimpcurve.c
@@ -143,16 +143,18 @@ gimp_curve_class_init (GimpCurveClass *klass)
   data_class->get_extension         = gimp_curve_get_extension;
   data_class->duplicate             = gimp_curve_duplicate;
 
- GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CURVE_TYPE,
+ 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_INSTALL_PROP_INT (object_class, PROP_N_POINTS,
+  GIMP_CONFIG_PROP_INT (object_class, PROP_N_POINTS,
                                 "n-points",
+                                "Number of Points",
                                 "The number of points",
-                                100, 100, 100, 0);
+                                600, 600, 600, 0);
 
   array_spec = g_param_spec_double ("point", NULL, NULL,
                                     -1.0, 1.0, 0.0, GIMP_PARAM_READWRITE);
@@ -163,10 +165,11 @@ gimp_curve_class_init (GimpCurveClass *klass)
                                                                 GIMP_PARAM_STATIC_STRINGS |
                                                                 GIMP_CONFIG_PARAM_FLAGS));
 
- GIMP_CONFIG_INSTALL_PROP_INT  (object_class, PROP_N_SAMPLES,
-                                 "n-samples",
-                                 "The number of samples",
-                                 1024, 1024, 1024, 0);
+ GIMP_CONFIG_PROP_INT  (object_class, PROP_N_SAMPLES,
+                        "n-samples",
+                        "Number of Samples",
+                        "The number of samples",
+                         2048, 2048, 2048, 0);
 
   array_spec = g_param_spec_double ("sample", NULL, NULL,
                                     0.0, 1.0, 0.0, GIMP_PARAM_READWRITE);
diff --git a/app/tools/gimpcurvestool.c b/app/tools/gimpcurvestool.c
index 311b67e..f8a1878 100644
--- a/app/tools/gimpcurvestool.c
+++ b/app/tools/gimpcurvestool.c
@@ -154,8 +154,6 @@ static gboolean   curves_get_channel_color         (GtkWidget            *widget
                                                     GimpHistogramChannel  channel,
                                                     GimpRGB              *color);
 
-static const GimpRGB * curves_get_channel_color    (GimpHistogramChannel  channel);
-
 G_DEFINE_TYPE (GimpCurvesTool, gimp_curves_tool, GIMP_TYPE_FILTER_TOOL)
 
 #define parent_class gimp_curves_tool_parent_class
@@ -685,8 +683,10 @@ gimp_curves_tool_dialog (GimpFilterTool *filter_tool)
                     G_CALLBACK (gimp_curves_tool_control_events),
                     tool);
 
+  /*
   gimp_histogram_options_connect_view (GIMP_HISTOGRAM_OPTIONS (tool_options),
                                        GIMP_HISTOGRAM_VIEW (tool->graph));
+  */
 
   /*  The bottom color bar  */
   hbox2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
diff --git a/libgimpbase/gimpbaseenums.c b/libgimpbase/gimpbaseenums.c
index 5df24a3..4acfd75 100644
--- a/libgimpbase/gimpbaseenums.c
+++ b/libgimpbase/gimpbaseenums.c
@@ -1327,7 +1327,7 @@ gimp_pdb_proc_type_get_type (void)
   static const GimpEnumDesc descs[] =
   {
     { GIMP_INTERNAL, NC_("pdb-proc-type", "Internal GIMP procedure"), NULL },
-    { GIMP_PLUGIN, NC_("pdb-proc-type", "GIMP Plug-in"), NULL },
+    { GIMP_PLUGIN, NC_("pdb-proc-type", "GIMP Plug-In"), NULL },
     { GIMP_EXTENSION, NC_("pdb-proc-type", "GIMP Extension"), NULL },
     { GIMP_TEMPORARY, NC_("pdb-proc-type", "Temporary Procedure"), NULL },
     { 0, NULL, NULL }


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