diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-10-24 22:16:07 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2003-10-24 22:16:07 +0000 |
commit | 3a7a64aa46ea1c312c06e17a177c81fddfa93683 (patch) | |
tree | 12608b485ea365f093a99c5c7e0654049a4bcb2c /docs/reference/gtk/tmpl/gtkscale.sgml | |
parent | 1e5c8e64f5f44adc288e16bc2aafbb06372e600f (diff) | |
download | gdk-pixbuf-3a7a64aa46ea1c312c06e17a177c81fddfa93683.tar.gz |
=== Released 2.3.0 ===GTK_2_3_0
Fri Oct 24 16:54:04 2003 Owen Taylor <otaylor@redhat.com>
* === Released 2.3.0 ===
* configure.in: Remove a stray comma.
* README.in: Fix a few notes about Xft 1 and pango-1.0.
* NEWS: Finish updates for 2.3.0.
* po/Makefile.in.in: Update to latest GLib version.
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 8935f1164..351ae89b1 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 @@ -109,52 +158,3 @@ Gets the position in which the current value is displayed. @Returns: the position in which the current value is displayed. -<!-- ##### 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> - |