diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2004-07-20 02:26:06 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2004-07-20 02:26:06 +0000 |
commit | 9d2a946813797d812a6c16fe0618eea9d8cd95f9 (patch) | |
tree | b80ce431a99af0a6794992b1d6eac73b00ce83f6 /docs/reference/gtk/tmpl/gtkscale.sgml | |
parent | 04ec6a9d23ea21f9cb9010c4db45029eafd345c8 (diff) | |
download | gdk-pixbuf-9d2a946813797d812a6c16fe0618eea9d8cd95f9.tar.gz |
=== Released 2.5.0 ===GTK_2_5_0
Sun Jul 18 17:21:10 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* === Released 2.5.0 ===
* NEWS: updates
* tests/testcombo.c: Fix compilation
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> - |