[gtk+/gtk-3-22] Scale: Improve docs of format-value property
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] Scale: Improve docs of format-value property
- Date: Sun, 19 Feb 2017 09:13:07 +0000 (UTC)
commit 0478bfd37ba443905bad94d018d88e237307c4e8
Author: Daniel Boles <dboles src gnome org>
Date: Sun Feb 19 09:09:28 2017 +0000
Scale: Improve docs of format-value property
gtk/gtkscale.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 80a501c..28fcde6 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -735,6 +735,9 @@ gtk_scale_class_init (GtkScaleClass *class)
* Connect a signal handler which returns an allocated string representing
* @value. That string will then be used to display the scale's value.
*
+ * If no user-provided handlers are installed, the value will be displayed on
+ * its own, rounded according to the value of the #GtkScale:digits property.
+ *
* Here's an example signal handler which displays a value 1.0 as
* with "-->1.0<--".
* |[<!-- language="C" -->
@@ -1956,8 +1959,7 @@ weed_out_neg_zero (gchar *str,
}
/*
- * Emits #GtkScale:format-value signal to format the value,
- * if no user signal handlers, falls back to a default format.
+ * Emits the #GtkScale:format-value signal.
*
* Returns: formatted value
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]