[gtk+] scale: Document interaction between rounding and autoscrolling
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] scale: Document interaction between rounding and autoscrolling
- Date: Wed, 24 Aug 2016 16:59:48 +0000 (UTC)
commit 07e9b399d5352b10ca5997f564903a36d5f0dd19
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 24 12:58:54 2016 -0400
scale: Document interaction between rounding and autoscrolling
This is a bit of a gotcha, so better document it.
gtk/gtkscale.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 895438c..6ae1844 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -1116,6 +1116,11 @@ gtk_scale_new_with_range (GtkOrientation orientation,
* 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.
+ *
+ * Note that rounding to a small number of digits can interfere with
+ * the smooth autoscrolling that is built into #GtkScale. As an alternative,
+ * you can use the #GtkScale::format-value signal to format the displayed
+ * value yourself.
*/
void
gtk_scale_set_digits (GtkScale *scale,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]