From 3253df026a73e6b41a12af3f69adedc090019891 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 29 Jan 2016 14:34:36 +0100 Subject: Allow setting max bin value of histogram --- bin/gui/egg-histogram-view.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin/gui/egg-histogram-view.c') diff --git a/bin/gui/egg-histogram-view.c b/bin/gui/egg-histogram-view.c index cad7fdf..69df137 100644 --- a/bin/gui/egg-histogram-view.c +++ b/bin/gui/egg-histogram-view.c @@ -138,6 +138,14 @@ egg_histogram_get_range (EggHistogramView *view, *max = priv->max_value; } +void +egg_histogram_view_set_max (EggHistogramView *view, + guint max) +{ + g_return_if_fail (EGG_IS_HISTOGRAM_VIEW (view)); + view->priv->max = max; +} + static void set_cursor_type (EggHistogramView *view, GdkCursorType cursor_type) { -- cgit v1.2.3