Superclass: button atk-implementor-iface activatable buildable orientable
Subclasses: volume-button
scale-button provides a button which pops up a scale widget. This kind of widget is commonly used for volume controls in multimedia applications, and GTK+ provides a volume-button subclass that is tailored for this use case.
Slots:
scale-button-adjustment
.
The adjustment that contains the current value of this scale button object.
string
. Accessor: scale-button-icons
.
The names of the icons to be used by the scale button. The first item in the list will be used in the button when the current value is the lowest value, the second item for the highest value. All the subsequent icons will be used for all the other values, spread evenly over the range of values.
If there's only one icon name in the icons array, it will be used for all the values. If only two icon names are in the icons array, the first one will be used for the bottom 50% of the scale, and the second one for the top 50%.
It is recommended to use at least 3 icons so that the scale-button reflects the current value of the scale better for the users.
scale-button-size
.
The icon size.
Default value: :small-toolbar
double-float
. Accessor: scale-button-value
.
The value of the scale.
Default value: 0
Signals:
This signal is a keybinding signal which gets emitted to popdown the scale widget.
The default binding for this signal is Escape.
This signal is a keybinding signal which gets emitted to popup the scale widget.
The default bindings for this signal are Space, Enter and Return.
double-float
) => void. Options: run-last.
This signal is emitted when the value field has changed.