[gtk/matthiasc/for-master: 26/26] mediastream: Volume is a double
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 26/26] mediastream: Volume is a double
- Date: Wed, 20 May 2020 20:08:49 +0000 (UTC)
commit 9a1b4a766fd9c7ee6f834df9d1fe6b467334a693
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 20 15:07:58 2020 -0400
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.
gtk/gtkmediastream.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkmediastream.c b/gtk/gtkmediastream.c
index 22bbd916c9..09c1230595 100644
--- a/gtk/gtkmediastream.c
+++ b/gtk/gtkmediastream.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]