summaryrefslogtreecommitdiff
path: root/gst/frei0r
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-06-12 15:07:26 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-06-19 11:03:13 +0200
commit6ed5ac184b258cbe4ae999c950006c287d45ca95 (patch)
treedf76dbe41f6d263cabcfee8562768d56e83749c9 /gst/frei0r
parent0a684a3d04df59a64bb674882fac58b7467eeffb (diff)
frei0r: Use better property nicks
Diffstat (limited to 'gst/frei0r')
-rw-r--r--gst/frei0r/gstfrei0r.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/gst/frei0r/gstfrei0r.c b/gst/frei0r/gstfrei0r.c
index 6af64948d..0841c1845 100644
--- a/gst/frei0r/gstfrei0r.c
+++ b/gst/frei0r/gstfrei0r.c
@@ -104,46 +104,59 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
break;
case F0R_PARAM_COLOR:{
gchar *prop_name_full;
-
- /* FIXME: Full name, i.e. -R */
+ gchar *prop_nick_full;
prop_name_full = g_strconcat (prop_name, "-r", NULL);
+ prop_nick_full = g_strconcat (param_info->name, "-R", NULL);
g_object_class_install_property (gobject_class, count++,
- g_param_spec_float (prop_name_full, param_info->name,
+ g_param_spec_float (prop_name_full, prop_nick_full,
param_info->explanation, 0.0, 1.0, 0.0,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE));
g_free (prop_name_full);
+ g_free (prop_nick_full);
+
prop_name_full = g_strconcat (prop_name, "-g", NULL);
+ prop_nick_full = g_strconcat (param_info->name, "-G", NULL);
g_object_class_install_property (gobject_class, count++,
g_param_spec_float (prop_name_full, param_info->name,
param_info->explanation, 0.0, 1.0, 0.0,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE));
g_free (prop_name_full);
+ g_free (prop_nick_full);
+
prop_name_full = g_strconcat (prop_name, "-b", NULL);
+ prop_nick_full = g_strconcat (param_info->name, "-B", NULL);
g_object_class_install_property (gobject_class, count++,
g_param_spec_float (prop_name_full, param_info->name,
param_info->explanation, 0.0, 1.0, 0.0,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE));
g_free (prop_name_full);
+ g_free (prop_nick_full);
properties[i].n_prop_ids = 3;
break;
}
case F0R_PARAM_POSITION:{
gchar *prop_name_full;
+ gchar *prop_nick_full;
prop_name_full = g_strconcat (prop_name, "-x", NULL);
+ prop_nick_full = g_strconcat (param_info->name, "-X", NULL);
g_object_class_install_property (gobject_class, count++,
g_param_spec_double (prop_name_full, param_info->name,
param_info->explanation, 0.0, 1.0, 0.0,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE));
g_free (prop_name_full);
- prop_name_full = g_strconcat (prop_name, "-y", NULL);
+ g_free (prop_nick_full);
+
+ prop_name_full = g_strconcat (prop_name, "-Y", NULL);
+ prop_nick_full = g_strconcat (param_info->name, "-X", NULL);
g_object_class_install_property (gobject_class, count++,
g_param_spec_double (prop_name_full, param_info->name,
param_info->explanation, 0.0, 1.0, 0.0,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE));
g_free (prop_name_full);
+ g_free (prop_nick_full);
properties[i].n_prop_ids = 2;
break;