diff options
Diffstat (limited to 'docs/reference/gtk/tmpl/gtkscale.sgml')
-rw-r--r-- | docs/reference/gtk/tmpl/gtkscale.sgml | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/docs/reference/gtk/tmpl/gtkscale.sgml b/docs/reference/gtk/tmpl/gtkscale.sgml index db62bf993..dff8b0c0e 100644 --- a/docs/reference/gtk/tmpl/gtkscale.sgml +++ b/docs/reference/gtk/tmpl/gtkscale.sgml @@ -50,6 +50,55 @@ slider.</entry> </para> +<!-- ##### SIGNAL GtkScale::format-value ##### --> +<para> +Signal which allows you to change how the scale value is displayed. Connect a +signal handler which returns an allocated string representing @value. +That string will then be used to display the scale's value. +Here's an example signal handler which displays a value 1.0 as +with "-->1.0<--". +<informalexample><programlisting> +static gchar* +format_value_callback (GtkScale *scale, + gdouble value) +{ + return g_strdup_printf ("-->%0.*g<--", + gtk_scale_get_digits (scale), value); +} +</programlisting></informalexample> +</para> + +@scale: the object which received the signal. +@arg1: +@Returns: allocated string representing @value +<!-- # Unused Parameters # --> +@value: value to format + +<!-- ##### ARG GtkScale:digits ##### --> +<para> + +</para> + +<!-- ##### ARG GtkScale:draw-value ##### --> +<para> + +</para> + +<!-- ##### ARG GtkScale:value-pos ##### --> +<para> + +</para> + +<!-- ##### ARG GtkScale:slider-length ##### --> +<para> + +</para> + +<!-- ##### ARG GtkScale:value-spacing ##### --> +<para> + +</para> + <!-- ##### FUNCTION gtk_scale_set_digits ##### --> <para> Sets the number of decimal places that are displayed in the value. Also causes @@ -128,52 +177,3 @@ Gets the position in which the current value is displayed. @y: -<!-- ##### SIGNAL GtkScale::format-value ##### --> -<para> -Signal which allows you to change how the scale value is displayed. Connect a -signal handler which returns an allocated string representing @value. -That string will then be used to display the scale's value. -Here's an example signal handler which displays a value 1.0 as -with "-->1.0<--". -<informalexample><programlisting> -static gchar* -format_value_callback (GtkScale *scale, - gdouble value) -{ - return g_strdup_printf ("-->%0.*g<--", - gtk_scale_get_digits (scale), value); -} -</programlisting></informalexample> -</para> - -@scale: the object which received the signal. -@arg1: -@Returns: allocated string representing @value -<!-- # Unused Parameters # --> -@value: value to format - -<!-- ##### ARG GtkScale:digits ##### --> -<para> - -</para> - -<!-- ##### ARG GtkScale:draw-value ##### --> -<para> - -</para> - -<!-- ##### ARG GtkScale:value-pos ##### --> -<para> - -</para> - -<!-- ##### ARG GtkScale:slider-length ##### --> -<para> - -</para> - -<!-- ##### ARG GtkScale:value-spacing ##### --> -<para> - -</para> - |