[gimp/wip/pippin: 4/6] app: default many created gimp_histograms to linear



commit 3e96d012586f942fef55f18f968c537521f08d25
Author: Øyvind Kolås <pippin gimp org>
Date:   Mon Dec 26 18:54:55 2016 +0100

    app: default many created gimp_histograms to linear

 app/core/gimpdrawable-levels.c |    2 +-
 app/tools/gimpcurvestool.c     |    5 ++++-
 app/tools/gimplevelstool.c     |    2 +-
 app/tools/gimpthresholdtool.c  |    2 +-
 4 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpdrawable-levels.c b/app/core/gimpdrawable-levels.c
index daf85aa..03727f6 100644
--- a/app/core/gimpdrawable-levels.c
+++ b/app/core/gimpdrawable-levels.c
@@ -53,7 +53,7 @@ gimp_drawable_levels_stretch (GimpDrawable *drawable,
 
   config = g_object_new (GIMP_TYPE_LEVELS_CONFIG, NULL);
 
-  histogram = gimp_histogram_new (FALSE);
+  histogram = gimp_histogram_new (TRUE);
   gimp_drawable_calculate_histogram (drawable, histogram);
 
   gimp_levels_config_stretch (config, histogram,
diff --git a/app/tools/gimpcurvestool.c b/app/tools/gimpcurvestool.c
index e976726..acfec80 100644
--- a/app/tools/gimpcurvestool.c
+++ b/app/tools/gimpcurvestool.c
@@ -224,7 +224,10 @@ gimp_curves_tool_initialize (GimpTool     *tool,
       return FALSE;
     }
 
-  histogram = gimp_histogram_new (FALSE);
+  histogram = gimp_histogram_new (TRUE);
+  gimp_int_combo_box_set_sensitivity (GIMP_INT_COMBO_BOX (c_tool->channel_menu),
+                                      curves_menu_sensitivity, drawable, NULL);
+
   gimp_drawable_calculate_histogram (drawable, histogram);
   gimp_histogram_view_set_background (GIMP_HISTOGRAM_VIEW (c_tool->graph),
                                       histogram);
diff --git a/app/tools/gimplevelstool.c b/app/tools/gimplevelstool.c
index 8c4afa9..beb671a 100644
--- a/app/tools/gimplevelstool.c
+++ b/app/tools/gimplevelstool.c
@@ -169,7 +169,7 @@ gimp_levels_tool_class_init (GimpLevelsToolClass *klass)
 static void
 gimp_levels_tool_init (GimpLevelsTool *tool)
 {
-  tool->histogram = gimp_histogram_new (FALSE);
+  tool->histogram = gimp_histogram_new (TRUE);
 }
 
 static void
diff --git a/app/tools/gimpthresholdtool.c b/app/tools/gimpthresholdtool.c
index 0af3ab1..174fa25 100644
--- a/app/tools/gimpthresholdtool.c
+++ b/app/tools/gimpthresholdtool.c
@@ -121,7 +121,7 @@ gimp_threshold_tool_class_init (GimpThresholdToolClass *klass)
 static void
 gimp_threshold_tool_init (GimpThresholdTool *t_tool)
 {
-  t_tool->histogram = gimp_histogram_new (FALSE);
+  t_tool->histogram = gimp_histogram_new (TRUE);
 }
 
 static void


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