mediastream: Volume is a double

Another obvious copy-paste error in the property
declarations of GtkMediaStream. Volume should be
a double, with range [0, 1], not a boolean.
This commit is contained in:
Matthias Clasen 2020-05-20 15:07:58 -04:00
parent 87d2e86429
commit 9a1b4a766f

View File

@ -441,11 +441,11 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* Volume of the audio stream.
*/
properties[PROP_VOLUME] =
g_param_spec_boolean ("volume",
P_("Volume"),
P_("Volume of the audio stream."),
1.0,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
g_param_spec_double ("volume",
P_("Volume"),
P_("Volume of the audio stream."),
0.0, 1.0, 1.0,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
g_object_class_install_properties (gobject_class, N_PROPS, properties);
}