From: Matthias Clasen Date: Wed, 20 May 2020 19:07:58 +0000 (-0400) Subject: mediastream: Volume is a double X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~16^2~134^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9a1b4a766fd9c7ee6f834df9d1fe6b467334a693;p=gtk4.git 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. --- 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); }