Gtk.Scale::format-value

function callback(scale, value:Number, ):String;

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<--". |[ static gchar* format_value_callback (GtkScale *scale, gdouble value) { return g_strdup_printf ("-->%0.*g<--", gtk_scale_get_digits (scale), value); } ]|

scale

instance of Gtk.Scale that is emitting the signal

value

the value to format

Returns

allocated string representing value