docs: Make sure frei0r plugins properties default are stable

frei0r returns 'random' values as default and it makes the cache
often change for no good reason
This commit is contained in:
Thibault Saunier 2019-05-14 10:45:21 -04:00
parent 8228f78cb7
commit 8917c62f93
2 changed files with 21 additions and 13 deletions

View file

@ -21190,7 +21190,7 @@
"blurb": "Indicator colour", "blurb": "Indicator colour",
"construct": false, "construct": false,
"construct-only": false, "construct-only": false,
"default": "1.86723e+25", "default": "0",
"max": "1", "max": "1",
"min": "0", "min": "0",
"type-name": "gfloat", "type-name": "gfloat",
@ -21200,7 +21200,7 @@
"blurb": "Indicator colour", "blurb": "Indicator colour",
"construct": false, "construct": false,
"construct-only": false, "construct-only": false,
"default": "1.35632e-19", "default": "0",
"max": "1", "max": "1",
"min": "0", "min": "0",
"type-name": "gfloat", "type-name": "gfloat",
@ -21210,7 +21210,7 @@
"blurb": "Indicator colour", "blurb": "Indicator colour",
"construct": false, "construct": false,
"construct-only": false, "construct-only": false,
"default": "1.35632e-19", "default": "0",
"max": "1", "max": "1",
"min": "0", "min": "0",
"type-name": "gfloat", "type-name": "gfloat",
@ -21243,7 +21243,7 @@
"blurb": "Current time", "blurb": "Current time",
"construct": false, "construct": false,
"construct-only": false, "construct-only": false,
"default": "4.08536e+223", "default": "0",
"max": "1", "max": "1",
"min": "0", "min": "0",
"type-name": "gdouble", "type-name": "gdouble",
@ -21253,7 +21253,7 @@
"blurb": "Indicator transparency", "blurb": "Indicator transparency",
"construct": false, "construct": false,
"construct-only": false, "construct-only": false,
"default": "1.02588e-71", "default": "0",
"max": "1", "max": "1",
"min": "0", "min": "0",
"type-name": "gdouble", "type-name": "gdouble",

View file

@ -103,7 +103,8 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
g_param_spec_boolean (prop_name, param_info->name, g_param_spec_boolean (prop_name, param_info->name,
param_info->explanation, param_info->explanation,
properties[i].default_value.data.b ? TRUE : FALSE, properties[i].default_value.data.b ? TRUE : FALSE,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE |
GST_PARAM_DOC_SHOW_DEFAULT));
properties[i].n_prop_ids = 1; properties[i].n_prop_ids = 1;
break; break;
case F0R_PARAM_DOUBLE:{ case F0R_PARAM_DOUBLE:{
@ -116,7 +117,8 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
g_object_class_install_property (gobject_class, count++, g_object_class_install_property (gobject_class, count++,
g_param_spec_double (prop_name, param_info->name, g_param_spec_double (prop_name, param_info->name,
param_info->explanation, 0.0, 1.0, def, param_info->explanation, 0.0, 1.0, def,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE |
GST_PARAM_DOC_SHOW_DEFAULT));
properties[i].n_prop_ids = 1; properties[i].n_prop_ids = 1;
break; break;
} }
@ -124,7 +126,8 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
g_object_class_install_property (gobject_class, count++, g_object_class_install_property (gobject_class, count++,
g_param_spec_string (prop_name, param_info->name, g_param_spec_string (prop_name, param_info->name,
param_info->explanation, properties[i].default_value.data.s, param_info->explanation, properties[i].default_value.data.s,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE |
GST_PARAM_DOC_SHOW_DEFAULT));
properties[i].n_prop_ids = 1; properties[i].n_prop_ids = 1;
break; break;
case F0R_PARAM_COLOR:{ case F0R_PARAM_COLOR:{
@ -141,7 +144,8 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
g_object_class_install_property (gobject_class, count++, g_object_class_install_property (gobject_class, count++,
g_param_spec_float (prop_name_full, prop_nick_full, g_param_spec_float (prop_name_full, prop_nick_full,
param_info->explanation, 0.0, 1.0, def, param_info->explanation, 0.0, 1.0, def,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE |
GST_PARAM_DOC_SHOW_DEFAULT));
g_free (prop_name_full); g_free (prop_name_full);
g_free (prop_nick_full); g_free (prop_nick_full);
@ -154,7 +158,8 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
g_object_class_install_property (gobject_class, count++, g_object_class_install_property (gobject_class, count++,
g_param_spec_float (prop_name_full, prop_nick_full, g_param_spec_float (prop_name_full, prop_nick_full,
param_info->explanation, 0.0, 1.0, def, param_info->explanation, 0.0, 1.0, def,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE |
GST_PARAM_DOC_SHOW_DEFAULT));
g_free (prop_name_full); g_free (prop_name_full);
g_free (prop_nick_full); g_free (prop_nick_full);
@ -167,7 +172,8 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
g_object_class_install_property (gobject_class, count++, g_object_class_install_property (gobject_class, count++,
g_param_spec_float (prop_name_full, prop_nick_full, g_param_spec_float (prop_name_full, prop_nick_full,
param_info->explanation, 0.0, 1.0, def, param_info->explanation, 0.0, 1.0, def,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE |
GST_PARAM_DOC_SHOW_DEFAULT));
g_free (prop_name_full); g_free (prop_name_full);
g_free (prop_nick_full); g_free (prop_nick_full);
@ -188,7 +194,8 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
g_object_class_install_property (gobject_class, count++, g_object_class_install_property (gobject_class, count++,
g_param_spec_double (prop_name_full, prop_nick_full, g_param_spec_double (prop_name_full, prop_nick_full,
param_info->explanation, 0.0, 1.0, def, param_info->explanation, 0.0, 1.0, def,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE |
GST_PARAM_DOC_SHOW_DEFAULT));
g_free (prop_name_full); g_free (prop_name_full);
g_free (prop_nick_full); g_free (prop_nick_full);
@ -201,7 +208,8 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
g_object_class_install_property (gobject_class, count++, g_object_class_install_property (gobject_class, count++,
g_param_spec_double (prop_name_full, prop_nick_full, g_param_spec_double (prop_name_full, prop_nick_full,
param_info->explanation, 0.0, 1.0, def, param_info->explanation, 0.0, 1.0, def,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE |
GST_PARAM_DOC_SHOW_DEFAULT));
g_free (prop_name_full); g_free (prop_name_full);
g_free (prop_nick_full); g_free (prop_nick_full);