mediastream: Volume is a double
authorMatthias Clasen <mclasen@redhat.com>
Wed, 20 May 2020 19:07:58 +0000 (15:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 20 May 2020 20:07:50 +0000 (16:07 -0400)
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

index 22bbd916c91b9442119c052222e60ea2e00fc949..09c12305952094914071c641f437d5be1c534a61 100644 (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);
 }