scale: doc: set_digits doesn’t round retroactively
authorDaniel Boles <dboles@src.gnome.org>
Wed, 18 Jan 2017 23:42:55 +0000 (23:42 +0000)
committerDaniel Boles <dboles@src.gnome.org>
Thu, 19 Jan 2017 00:17:40 +0000 (00:17 +0000)
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

index eb1d11056d18726bbc76bf089191a70659b5287e..4f858496d84ff4ec52513463c8463ee416606088 100644 (file)
@@ -1113,9 +1113,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,