Gtk.VolumeButton

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.AccessibleRange Gtk.AccessibleRange GObject.GInterface->Gtk.AccessibleRange Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.ScaleButton Gtk.ScaleButton Gtk.AccessibleRange->Gtk.ScaleButton Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Orientable->Gtk.ScaleButton Gtk.VolumeButton Gtk.VolumeButton Gtk.ScaleButton->Gtk.VolumeButton Gtk.Widget->Gtk.ScaleButton

Example

../_images/VolumeButton.png
Subclasses:

None

Methods

Inherited:

Gtk.ScaleButton (10), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Orientable (2)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new ()

Virtual Methods

Inherited:

Gtk.ScaleButton (1), Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9), Gtk.AccessibleRange (1)

Properties

Inherited:

Gtk.ScaleButton (4), Gtk.Widget (34), Gtk.Accessible (1), Gtk.Orientable (1)

Name

Type

Flags

Short Description

use-symbolic

bool

r/w/c/en

deprecated

Signals

Inherited:

Gtk.ScaleButton (3), Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.ScaleButton (3), Gtk.Widget (13), GObject.Object (1)

Name

Type

Access

Description

parent

Gtk.ScaleButton

r

Class Details

class Gtk.VolumeButton(**kwargs)
Bases:

Gtk.ScaleButton

Abstract:

No

GtkVolumeButton is a GtkScaleButton subclass tailored for volume control.

An example Gtk.VolumeButton

Deprecated since version 4.10: This widget will be removed in GTK 5

classmethod new()[source]
Returns:

a new GtkVolumeButton

Return type:

Gtk.Widget

Creates a GtkVolumeButton.

The button has a range between 0.0 and 1.0, with a stepping of 0.02. Volume values can be obtained and modified using the functions from [class`Gtk`.ScaleButton].

Deprecated since version 4.10: This widget will be removed in GTK 5

Property Details

Gtk.VolumeButton.props.use_symbolic
Name:

use-symbolic

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, CONSTRUCT, EXPLICIT_NOTIFY

Whether to use symbolic icons as the icons.

Note that if the symbolic icons are not available in your installed theme, then the normal (potentially colorful) icons will be used.

Deprecated since version 4.10: This widget will be removed in GTK 5