From 0776bd438bc9badf94116e3f296ddb176d899b1d Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Wed, 18 Jan 2017 23:42:55 +0000 Subject: [PATCH] =?UTF-8?q?scale:=20doc:=20set=5Fdigits=20doesn=E2=80=99t?= =?UTF-8?q?=20round=20retroactively?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Whether it should is an open question, but for now, the documentation should clearly indicate that currently rounding is only applied upon changes to the value, not to the existing value when ::digits changes. This is already clear in the doc for the underlying Range::round-digits. https://bugzilla.gnome.org/show_bug.cgi?id=358970 --- gtk/gtkscale.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index bd4164fdad..3fb9186ba5 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -1080,9 +1080,9 @@ gtk_scale_new_with_range (GtkOrientation orientation, * @digits: the number of decimal places to display, * e.g. use 1 to display 1.0, 2 to display 1.00, etc * - * Sets the number of decimal places that are displayed in the value. - * Also causes the value of the adjustment to be rounded off to this - * number of digits, so the retrieved value matches the value the user saw. + * Sets the number of decimal places that are displayed in the value. Also + * causes the value of the adjustment to be rounded to this number of digits + * whenever it is changed, so the retrieved value matches the displayed one. * * Note that rounding to a small number of digits can interfere with * the smooth autoscrolling that is built into #GtkScale. As an alternative,