Creates a ScaleEntry (slider and spin button) to set and display the value of a specified int or double property with sensible default settings depending on the range (decimal places, increments, etc.
). These settings can be overridden by the relevant widget methods.
If label is null, the property_name's nick will be used as label of the
returned object.
If factor is not 1.0, the widget's range will be computed based of property_name's range multiplied by
factor. A typical usage would be to display a [0.0, 1.0] range as [0.0, 100.0] by setting 100.0 as factor.
See set_bounds for more information on limit_scale,
lower_limit and upper_limit.
| config |
Object to which property is attached. |
| property_name |
Name of integer or double property controlled by the scale. |
| label | |
| factor |
Optional multiplier to convert |
| limit_scale |
false if the range of possible values of the GtkScale should be the same as of the GtkSpinButton. |
| lower_limit |
The scale's lower boundary if |
| upper_limit |
The scale's upper boundary if |
|
The newly allocated ScaleEntry. |