Another obvious copy-paste error in the property
declarations of GtkMediaStream. Volume should be
a double, with range [0, 1], not a boolean.
* 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);
}