app: rename gimp_histogram_get_channel() to get_component()

Because that's what it is. It also takes a "gint component"
(0..4) and not a "GimpHistogramChannel channel".
This commit is contained in:
Michael Natterer
2013-06-11 21:32:08 +02:00
parent a7f42de4c0
commit 8d1cbd95d2
3 changed files with 8 additions and 8 deletions

View File

@ -558,16 +558,16 @@ gimp_histogram_get_value (GimpHistogram *histogram,
}
gdouble
gimp_histogram_get_channel (GimpHistogram *histogram,
GimpHistogramChannel channel,
gint bin)
gimp_histogram_get_component (GimpHistogram *histogram,
gint component,
gint bin)
{
g_return_val_if_fail (GIMP_IS_HISTOGRAM (histogram), 0.0);
if (histogram->priv->n_channels > 3)
channel++;
component++;
return gimp_histogram_get_value (histogram, channel, bin);
return gimp_histogram_get_value (histogram, component, bin);
}
gint

View File

@ -87,8 +87,8 @@ gdouble gimp_histogram_get_threshold (GimpHistogram *histogram,
gdouble gimp_histogram_get_value (GimpHistogram *histogram,
GimpHistogramChannel channel,
gint bin);
gdouble gimp_histogram_get_channel (GimpHistogram *histogram,
GimpHistogramChannel channel,
gdouble gimp_histogram_get_component (GimpHistogram *histogram,
gint component,
gint bin);
gint gimp_histogram_n_channels (GimpHistogram *histogram);
gint gimp_histogram_n_bins (GimpHistogram *histogram);

View File

@ -168,7 +168,7 @@ gimp_operation_equalize_set_property (GObject *object,
{
gdouble histi;
histi = gimp_histogram_get_channel (self->histogram, k, i);
histi = gimp_histogram_get_component (self->histogram, k, i);
sum += histi;