From 9a1b4a766fd9c7ee6f834df9d1fe6b467334a693 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 20 May 2020 15:07:58 -0400 Subject: [PATCH] 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); } -- 2.30.2