frei0r: improve readability of RGB and XY property nickname strings
authorJean-François Fortin Tam <nekohayo@gmail.com>
Sat, 16 Mar 2013 17:13:14 +0000 (13:13 -0400)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 16 Mar 2013 18:16:34 +0000 (18:16 +0000)
Also fix the Y prop nickname string being incorrect.

https://bugzilla.gnome.org/show_bug.cgi?id=695884

gst/frei0r/gstfrei0r.c

index 73cf9a2bbd11c123a32e8240e69e69add064c24d..a1bf03bf9cb0889f7502d88bcf8133a498d34dab 100644 (file)
@@ -137,7 +137,7 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
         if (!(def <= 1.0 && def >= 0.0))
           def = 0.0;
         prop_name_full = g_strconcat (prop_name, "-r", NULL);
-        prop_nick_full = g_strconcat (param_info->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, prop_nick_full,
                 param_info->explanation, 0.0, 1.0, def,
@@ -150,7 +150,7 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
         if (!(def <= 1.0 && def >= 0.0))
           def = 0.0;
         prop_name_full = g_strconcat (prop_name, "-g", NULL);
-        prop_nick_full = g_strconcat (param_info->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, prop_nick_full,
                 param_info->explanation, 0.0, 1.0, def,
@@ -163,7 +163,7 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
         if (!(def <= 1.0 && def >= 0.0))
           def = 0.0;
         prop_name_full = g_strconcat (prop_name, "-b", NULL);
-        prop_nick_full = g_strconcat (param_info->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, prop_nick_full,
                 param_info->explanation, 0.0, 1.0, def,
@@ -184,7 +184,7 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
         if (!(def <= 1.0 && def >= 0.0))
           def = 0.0;
         prop_name_full = g_strconcat (prop_name, "-x", NULL);
-        prop_nick_full = g_strconcat (param_info->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, prop_nick_full,
                 param_info->explanation, 0.0, 1.0, def,
@@ -197,7 +197,7 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
         if (!(def <= 1.0 && def >= 0.0))
           def = 0.0;
         prop_name_full = g_strconcat (prop_name, "-Y", NULL);
-        prop_nick_full = g_strconcat (param_info->name, "-X", NULL);
+        prop_nick_full = g_strconcat (param_info->name, " (Y)", NULL);
         g_object_class_install_property (gobject_class, count++,
             g_param_spec_double (prop_name_full, prop_nick_full,
                 param_info->explanation, 0.0, 1.0, def,