diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-01-29 14:34:36 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-01-29 14:34:36 +0100 |
commit | 3253df026a73e6b41a12af3f69adedc090019891 (patch) | |
tree | 4faab8ccbcb23151671a6e7e4d7a45f6f5aac045 /bin/gui | |
parent | d0810f4e453184f858e08de9f2fb357d824b76a1 (diff) | |
download | uca-3253df026a73e6b41a12af3f69adedc090019891.tar.gz uca-3253df026a73e6b41a12af3f69adedc090019891.tar.bz2 uca-3253df026a73e6b41a12af3f69adedc090019891.tar.xz uca-3253df026a73e6b41a12af3f69adedc090019891.zip |
Allow setting max bin value of histogram
Diffstat (limited to 'bin/gui')
-rw-r--r-- | bin/gui/egg-histogram-view.c | 8 | ||||
-rw-r--r-- | bin/gui/egg-histogram-view.h | 2 |
2 files changed, 10 insertions, 0 deletions
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) { diff --git a/bin/gui/egg-histogram-view.h b/bin/gui/egg-histogram-view.h index afb0ad6..db36bb6 100644 --- a/bin/gui/egg-histogram-view.h +++ b/bin/gui/egg-histogram-view.h @@ -58,6 +58,8 @@ void egg_histogram_view_update (EggHistogramView *view, void egg_histogram_get_range (EggHistogramView *view, gdouble *min, gdouble *max); +void egg_histogram_view_set_max (EggHistogramView *view, + guint max); G_END_DECLS |